member presence is undefined

I am trying to get the activity of a member and printing it out, but it keeps saying that the members activity is undefined
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MoinAmMorgen
MoinAmMorgenOP2y ago
Syjalo
Syjalo2y ago
Show the error and code
MoinAmMorgen
MoinAmMorgenOP2y ago
There is no errot error just that Line 74 returns undefined or just nothing I have got the Member Presence Intent activated in the discord developer portal and in the code above i also got the GuildPresences Intent what else? Im pretty new
d.js docs
d.js docs2y ago
mdn Template literals (Template strings) Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.
MoinAmMorgen
MoinAmMorgenOP2y ago
Still says undefined I changed line 74 to this now: console.log(`A member plays ${member.presence.activities[0]}`) But if I play a game the array cant be empty tho or not? While playing a game i joined the channel, so that the output should give me the game name or not? yes
Want results from more Discord servers?
Add your server