How to obtain the server data under PRESENCE_UPDATE event? #1171
-
Hello, Could you please if this code is correct or not? I was trying to get the data out of the server, but when I print_r it doesn't show all of the server information. Thank you
I've tried
The members contains nothing in it. Please help Thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
It solved now!!! The problem is in the Discord instance declaration. I add intents with array object. As soon as I changed to | like
Everything works. The problem wasn't about network or installation or anything, but about the intent in the Discord instance declaration above |
Beta Was this translation helpful? Give feedback.
It solved now!!!
The problem is in the Discord instance declaration. I add intents with array object. As soon as I changed to | like
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, ....].