userUpdate not emitting when PresenceUpdate occurs

Within the documentation userUpdate is stated to be emitted whenever UserUpdate, GuildMemberUpdate, and PresenceUpdate occurs. However, I cannot replicate this. The presenceUpdate event is called for each guild and I was hoping that I could use the userUpdate event to mitigate that. Is this a documentation inconsistency or something I'm doing wrong?
No description
3 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
duck
duck6mo ago
you might be misunderstanding what it means your client would still need to receive the PresenceUpdate event from the gateway in order for that to happen it's not that discord sends the UserUpdate event for presence updates as well
connor
connorOP6mo ago
Ah okay, so it's more you get the updated user info (such as username) on presence updates, not that it emits when there's a presence update for the user. That does make more sense Is there a convention for deduping the presenceUpdates emitted for each guild? I guess that'd just be a case of storing something in memory to track if that specific hash of activity has been seen for that user Appreciate the quick response :)
Want results from more Discord servers?
Add your server