Get correct count of all members that are not offline #9221
-
|
Hello, I try to get the number of all members who are not offline. So when I do I did a little digging and came to this conclusion: Am I missing something? Is there another way to get the exact number? Is this a mistake? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hey, PresenceStatus as stated here, only provides 4 statuses: |
Beta Was this translation helpful? Give feedback.

Hey, PresenceStatus as stated here, only provides 4 statuses:
online,idle,dnd, andoffline, and it can also benullsometimes. It does not provideinvisible. For all statuses, you'd just check if it's that value, so for online, you'd doif (status == "online") onlineMemberCount++. There's an exception for offline, as if the user is offline, it can either benulloroffline, so you'd doif (!status | status == "offline") offlineMemberCount++. Hope this is helpful