You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because the check for a member being online (member?.presence?.status !== "offline") is wrong. When a presence is not in the cache the status (member?.presence?.status) is undefined and therefore the code thinks such members are online when in reality they are more likely to be offline. For a good approximate amount of online users guild.approximatePresenceCount should be used.
Unsure about how you should calculate how many members are online, but this is just a plain bug in my code. I should have added an exception for fields with undefined. However, I wonder how this seemed to work before...
I doubt there is 1 300 members online when Discord shows there are just 300 members in the Jäsen-role.
Needs investigating.
The text was updated successfully, but these errors were encountered: