Having App Nap on will make the app not work when it's on the background, thus leaving the Discord status not up-to-date. Apparently, since more recent MacOS versions, it's not even possible to disable it for just specific applications (the "defaults write \<app domain>" method is actually ignored) so for now the only solution is to disable App Nap globally. The ideal goal would be to make the app (and underlying osascript) not be put in sleep mode when being in the background, while also keeping App Nap active.
Having App Nap on will make the app not work when it's on the background, thus leaving the Discord status not up-to-date. Apparently, since more recent MacOS versions, it's not even possible to disable it for just specific applications (the "defaults write \<app domain>" method is actually ignored) so for now the only solution is to disable App Nap globally. The ideal goal would be to make the app (and underlying osascript) not be put in sleep mode when being in the background, while also keeping App Nap active.