-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not receiving User Update event #4169
Comments
I do not know if that is the fix but maybe you can try it out. I was wondering why my user cache was only my bot on startup and found out that I would need the |
Guild Presences is a privileged intent and I do not want to use it, this being said User Update event is not part of Gateway Intents and should still be received so I don't know. |
If you want to use it or not is unfortunately not relevant, if you want the event you will need to get whitelisted or enable the restriction of 100 servers as detailed in the discord API documentation userUpdate is synthesized by discord.js (line 13 below) internally and stems from presence updates, thus requires that intent. discord.js/src/client/actions/PresenceUpdate.js Lines 6 to 14 in d827544
The only other place user updates are handled from updates the client user |
We can also trigger userUpdate from guild member updates, there's an open issue about it #4279 imo it would be best to trigger the event from all 3 discord events. |
Please describe the problem you are having in as much detail as possible:
It beens few weeks that I am not receiving User Update event when using Gateway Intents.
Include a reproducible code sample here, if possible:
Here is my intents set up code but as User Update event is a passthrough I should still receive it.
Note that using eval to execute a bot.emit('userUpdate') works.
Further details:
The text was updated successfully, but these errors were encountered: