Discord.js: presenceUpdate event - old and new presences are always identical

Created on 7 Jan 2017  路  1Comment  路  Source: discordjs/discord.js

Both old and new presences always appear to be identical.

bot.on('presenceUpdate', (oldMember, newMember) => {
  console.log('old:');
  console.log(oldMember.user.presence);
  console.log('new:');
  console.log(newMember.user.presence);
});

gives this:
image

invalid

Most helpful comment

You need oldMember.presence, not oldMember.user.presence

>All comments

You need oldMember.presence, not oldMember.user.presence

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LLamaFTL picture LLamaFTL  路  3Comments

tiritto picture tiritto  路  3Comments

BrandonCookeDev picture BrandonCookeDev  路  3Comments

ghost picture ghost  路  3Comments

kvn1351 picture kvn1351  路  3Comments