#member presence is undefined

10 messages · Page 1 of 1 (latest)

tight ledge
#

I am trying to make a discord bot that moves you to a channel based on what game you currently play. The only problem is that the member.presence always returns undefined when the member is playing or when hes not. But i cant figure out how to let it give me a console output with the game the member is playing.

native slate
#

• 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.

tight ledge
#

That is the code

#

when i switch line 74 to member.presence.activities it just outputs: A member plays | but nothing else behind it, so no game what the member plays

keen kelp
tight ledge
#

I got GatewayIntentBits.GuildPresences

#

so yes

sweet viper
#

bad logic on line 68

keen kelp