Discord.js: presenceUpdate not working when a user has started streaming.

Created on 11 May 2020  路  4Comments  路  Source: discordjs/discord.js

I trying to use presenceUpdate:

client.on('presenceUpdate', (oldMember, newMember) => { console.log(oldMember); console.log(newMember); });

It's working good with Spotify and I can see that it triggered when someone is playing, and i see status CUSTOM_STATUS but when I start streaming on Twitch (Turning on OBS), status changed on Discord, but event presenceUpdate not working, can it be a bug?

Discord.js version: 12.2.0

unverified bug

Most helpful comment

Could it be that you don't have the Presence Intent allowed in your bot? Check it in discord.com developers page -> Bot

All 4 comments

Discord.js seems to always emit presenceUpdate events recieved through the gateway, so if it does not emit for something, it probably isn't recieved from Discord.

I'm also running into this - the activity array lists custom status and game currently being played but doesn't record streaming (whether it be Discord streaming or some other service like Twitch)

Could it be that you don't have the Presence Intent allowed in your bot? Check it in discord.com developers page -> Bot

Closing as it is a stale issue, reopen or check open issues if this is still an issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kvn1351 picture kvn1351  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

smchase picture smchase  路  3Comments

iCrawl picture iCrawl  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments