guillaumearnx
guillaumearnx

Reputation: 172

Discord js - Get member's presence game

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

Answers (2)

guillaumearnx
guillaumearnx

Reputation: 172

Problem solved, you had to tick boxes in the portal of discord developpers, it's all new!

Upvotes: 1

Double0Seven
Double0Seven

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

Related Questions