You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happened because Discord changed their API by deploying their intention-based Gateway API, which in turn, broke the underlying code library used to communicate with the Discord API, discord.js. You can see their FAQ update here.
How do I fix my bot then?
First things, first. As discord.js now requires a newer version of Node.js, you must upgrade Node.js to at leastv12.x.
Secondly, you'll need to upgrade your Apollo instance(s) to the latest version of v3. You can do this, by doing this:
git pull origin master
npm install
npm run build
Because of those new API changes, Apollo requires one of the Privileged Gateway Intents to function correctly. To set this up correctly, navigate to your Bot application page in the Discord Developer portal (e.g. https://discord.com/developers/applications/xxxx/bot). Here you'll need to flip the toggle for SERVER MEMBERS INTENT to on.
Now, Apollo should be working fine!
The text was updated successfully, but these errors were encountered:
Why did this happen?
This happened because Discord changed their API by deploying their intention-based Gateway API, which in turn, broke the underlying code library used to communicate with the Discord API,
discord.js
. You can see their FAQ update here.How do I fix my bot then?
discord.js
now requires a newer version of Node.js, you must upgrade Node.js to at leastv12.x
.v3
. You can do this, by doing this:Privileged Gateway Intents
to function correctly. To set this up correctly, navigate to your Bot application page in the Discord Developer portal (e.g.https://discord.com/developers/applications/xxxx/bot
). Here you'll need to flip the toggle forSERVER MEMBERS INTENT
to on.Now, Apollo should be working fine!
The text was updated successfully, but these errors were encountered: