Discord.js: `presence` event does not trigger game status updates

Created on 10 Jun 2016  路  1Comment  路  Source: discordjs/discord.js

Discord version: 8.0.0
NPM: 2.15.5
Node: 4.4.5

Issue: client.on('presence', (olduser, newuser) => not triggered on game update.

Description: The following code should presumably trigger whenever a user starts playing a game, but it does not in the current version:

bot.on("presence", (userold, usernew) => {
    console.log("Presence Changed!");
});

As a workaround, it's possible to capture the raw event instead, check for event.t == "PRESENCE_UPDATE" and go from there. Unfortunately this does not provide the "old" object for comparison, which is sad.

Most helpful comment

This is happening again for me. Workaround still works.

>All comments

This is happening again for me. Workaround still works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Brawaru picture Brawaru  路  3Comments

smchase picture smchase  路  3Comments

LLamaFTL picture LLamaFTL  路  3Comments

iCrawl picture iCrawl  路  3Comments

Blumlaut picture Blumlaut  路  3Comments