member presence is undefined

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.
7 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
MoinAmMorgen
MoinAmMorgenOP3y ago
That is the code
MoinAmMorgen
MoinAmMorgenOP3y ago
MoinAmMorgen
MoinAmMorgenOP3y ago
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
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
MoinAmMorgen
MoinAmMorgenOP3y ago
I got GatewayIntentBits.GuildPresences so yes
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server