Skip to content
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

Experiencing commands not working? See here. #154

Open
CreepPork opened this issue Dec 3, 2020 · 0 comments
Open

Experiencing commands not working? See here. #154

CreepPork opened this issue Dec 3, 2020 · 0 comments
Labels

Comments

@CreepPork
Copy link
Owner

CreepPork commented Dec 3, 2020

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?

  1. First things, first. As discord.js now requires a newer version of Node.js, you must upgrade Node.js to at least v12.x.
  2. 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
  1. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant