member presence is undefined

I want to get an console output of a members activity but it just returns undefined. Please help
10 Replies
MoinAmMorgen
MoinAmMorgenOP2y ago
MoinAmMorgen
MoinAmMorgenOP2y ago
That it the code
monbrey
monbrey2y ago
Not all members have a presence, especially if you dont have the GuildPresences intent enabled
MoinAmMorgen
MoinAmMorgenOP2y ago
i have got the GuildPresences enabled and also, i am testing it with me playing a game but it still says undefined
monbrey
monbrey2y ago
So which part is saying undefined
MoinAmMorgen
MoinAmMorgenOP2y ago
line 74
monbrey
monbrey2y ago
I dont see how that could be undefined, but line 68 not throw an error
MoinAmMorgen
MoinAmMorgenOP2y ago
maybe its line 66? Is the definition of the member right?
monbrey
monbrey2y ago
But you told me it was line 74, so what is it
MoinAmMorgen
MoinAmMorgenOP2y ago
i am trying to get the activity of the member that is joining the voice channel and outputting it in line 74, but if i define the member in line 66 wrong than im not gonna have an activity my english is bad because im german btw. sry Yes i have got that and in the code above i have got GatewayIntentetBits.GuildPresences or something like that
Want results from more Discord servers?
Add your server