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•3y ago
Message Not Public
Sign In & Join Server To View
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
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I got GatewayIntentBits.GuildPresences
so yes
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View