Reputation: 172
how can i get the game a member is playing. with user.presence, there is nothing in activity, even if member is playing (display on discord) An idea ? Console.log(user.presence)
Here is the code
const membre = message.guild.member(message.mentions.users.first());
console.log(membre.user.presence);
Upvotes: 0
Views: 2493
Reputation: 172
Problem solved, you had to tick boxes in the portal of discord developpers, it's all new!
Upvotes: 1
Reputation: 11
I'm not sure about this but it does say guild = null so maybe that is a factor? Also, could you provide the code. EDIT: Also some games don't show up on Discord
Sorry if this is a bad answer, my first time using Stack Overflow. Thanks :)
Upvotes: 0