Skip to content

How to obtain the server data under PRESENCE_UPDATE event? #1171

Closed Answered by pkSourceCode
pkSourceCode asked this question in Q&A
Discussion options

You must be logged in to vote

It solved now!!!

The problem is in the Discord instance declaration. I add intents with array object. As soon as I changed to | like

 'intents' =>  Intents::GUILD_MEMBERS |
                      Intents::GUILD_MESSAGES |
                      Intents::getDefaultIntents()

Everything works. The problem wasn't about network or installation or anything, but about the intent in the Discord instance declaration above
'
Separate the Intents with the | sign, not with the array [Intent1, Intent2, Intent3, ....].

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@pkSourceCode
Comment options

@pkSourceCode
Comment options

@pkSourceCode
Comment options

@PeanutNL
Comment options

@pkSourceCode
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pkSourceCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants