The reason for this can very likely be that you have not enabled the discord notifications either in your windows settings or disabled from within the app. Or a focus assist feature can also hinder notifications from apps.