TrojanerHD / TrojanerBot

My discord bot
MIT License
4 stars 2 forks source link

Missing documentation for required discord intents #88

Open LeMoonStar opened 12 months ago

LeMoonStar commented 12 months ago

Trying to deploy the Bot as described in the (current) README on a freshly set-up discord bot results in a crash with the following message:

/usr/src/trojaner/node_modules/@discordjs/ws/dist/index.js:1066
        throw new Error("Used disallowed intents");
              ^

Error: Used disallowed intents
    at WebSocketShard.onClose (/usr/src/trojaner/node_modules/@discordjs/ws/dist/index.js:1066:15)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emitClose (/usr/src/trojaner/node_modules/ws/lib/websocket.js:258:10)
    at TLSSocket.socketOnClose (/usr/src/trojaner/node_modules/ws/lib/websocket.js:1264:15)
    at TLSSocket.emit (node:events:525:35)
    at node:net:322:12
    at TCP.done (node:_tls_wrap:588:7)

Node.js v18.16.1
exit code: 1

Indicating that the Bot is missing access to discord intents required for it to work.

The README should list all required intents to make deploying and testing the bot easier.