#Count online users

6 messages · Page 1 of 1 (latest)

fading kindle
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

weary zodiac
sonic forum
#

members.cache.filter

weary zodiac
#

now it's:

(member) => member.presence.status === "online"
TypeError: Cannot read properties of null (reading 'status')
sonic forum
#

a member's presence is a nullable status

#

make sure you have the GuildPresences intent

also, you should fetch the members since they're not always cached, which you would also need the GuildMembers intent