OBNinjaa / mineflayer-discord-bot

A custom minecraft bot created using mineflayer which you can control using a discord bot
https://dsc.gg/mineflayer
29 stars 12 forks source link

Error("Used disallowed intents") #4

Closed UnknownUser010 closed 1 month ago

UnknownUser010 commented 1 month ago

mineflayer-discord-bot@1.0.0 start node src/main.js

/home/runner/testt/node_modules/@discordjs/ws/dist/index.js:1132 error: new Error("Used disallowed intents") ^

Error: Used disallowed intents at WebSocketShard.onClose (/home/runner/testt/node_modules/@discordjs/ws/dist/index.js:1132:18) at connection.onclose (/home/runner/testt/node_modules/@discordjs/ws/dist/index.js:676:17) at callListener (/home/runner/testt/node_modules/ws/lib/event-target.js:290:14) at WebSocket.onClose (/home/runner/testt/node_modules/ws/lib/event-target.js:220:9) at WebSocket.emit (node:events:518:28) at WebSocket.emitClose (/home/runner/testt/node_modules/ws/lib/websocket.js:260:10) at TLSSocket.socketOnClose (/home/runner/testt/node_modules/ws/lib/websocket.js:1272:15) at TLSSocket.emit (node:events:530:35) at node:net:337:12 at TCP.done (node:_tls_wrap:657:7)

Node.js v20.12.2

OBNinjaa commented 1 month ago

You need to enable Privileged Gateway Intents visit this link

image