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?3 Replies
- 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 OPyou 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 wellAh 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
presenceUpdate
s 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 :)