Emerald-Services / SupportBot

SupportBot is an open-sourced support system for discord. It's completely free to use with high amounts of customization to match your own brand.
https://emeraldsrv.com
MIT License
129 stars 38 forks source link

Startup Error: DISALLOWED_INTENTS #130

Closed Spielepapagei closed 2 years ago

Spielepapagei commented 2 years ago

If I Start my Bot then I get a DISALLOWED_INTENTS error message.

Are the INTENTS all Right?

/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:245
        throw new Error(WSCodes[error.code]);
              ^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:245:15)
    at async Client.login (/home/container/node_modules/discord.js/src/client/Client.js:254:7)
    at async Client.start (/home/container/Structures/Client.js:116:7) {
  [Symbol(code)]: 'DISALLOWED_INTENTS'
}
Node.js v17.9.1
SypherRed commented 2 years ago

And which intents were set?

Has-X commented 2 years ago

Did you enable them on the Discord Developer Bot menu? It often solves the issue.

1tzemerald commented 2 years ago

Hey.

  1. Go to the Discord Developer Dashboard
  2. Click New Application and give your application a Name
  3. Now once thats done, Navigate to your Bot Tab located on the sidebar
  4. Click Add Bot
  5. On this page you'll find your Bot Token, You'll need this for the configuration file so copy it somewhere safe
  6. Before we can leave that page, Scroll down and enable the ALL the Privileged Gateway Intents
Spielepapagei commented 2 years ago

Okay wow they added a new option. Sorry for the Ticket.