CreepPork / Apollo

Discord bot that allows to get status updates on your Arma 3 server.
MIT License
17 stars 8 forks source link

Experiencing commands not working? See here. #154

Open CreepPork opened 3 years ago

CreepPork commented 3 years ago

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
  3. 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!