Discord.js: presenceUpdate issues

Created on 6 Sep 2016  路  3Comments  路  Source: discordjs/discord.js

Experiencing some inconsistencies with the presenceUpdate event.

All regarding a regular user that is not the bot.

  • Starting from not playing anything and launching a game seems to work as intended.
  • Exit game, new user object still has user.game data as if nothing changed.
  • Launch same game again, presenceUpdate does not fire at all.
  • Exit game, again seems like oldUser == newUser.

The native Discord client properly reflects these events, and the old _presence_ event from v8 worked fine.

All 3 comments

Users don't receive their own presence updates. I think this is what you're experiencing here.

I'm trying with a user that is unrelated to the bot, and the same seems to hold true for other users on the server. I have never seen an update where oldUser has a game and newUser is null since I moved to v9. Granted, my server only has a few people, but they have exited games enough that it's clearly not a coincidence.

666 describes the issue you're having.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dmitry221060 picture Dmitry221060  路  3Comments

tom-barnes picture tom-barnes  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

Brawaru picture Brawaru  路  3Comments