Not getting presence events for server owner
I'm listening for all Events.PresenceUpdate events and seeing them come through for all members of my Discord, other than me, the server/guild owner. Is there something special I need to do permissions wise to allow the bot to get presence updates for my user as well?
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.14.11.0
node 16.16.0
There's no error as the bot does not receive the presence updates for my user at all.
Have you enabled the Presence Intent under the Privileged Gateway Intents section of the bot settings and added the
GuildPresences
to the list of intents while initializing your client?Yes, to both.
And like I said, I get presence updates for seemingly everyone else in the guild.
I'm grabbing all of the privileged intents on client instantiation:
You have any partials?
I do not
I was trying to replicate it, with this code snippet:
But it error'd because it couldn't read the
activities
of the presence
.
I added a partial named GuildMember to the partials
array of my client initialization call, so it changed to this:
And it worked. How about giving it a try?
(Sorry about the image or bad code formatting, I am away from my desk so I had to open up termux)But I can read the activities of presence for the events that I do get. I just literally never get the event for my user.
I'm checking for "Twitch" activity like this:
But again, that's not my issue. My issue is I never see the presence update events for my user.
This went out of my knowledge scope. Sorry about not being able to help you.
okay
I'm pretty sure. If I do this, I never see my presence updates:
Oh... I bet hiding my activity status does that