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•3y ago
Message Not Public
Sign In & Join Server To View

Show the error and code
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

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