javascriptnode.jsdiscordbotsuser-presence

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);

Solution

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