Playingallday383
Playingallday383
DIAdiscord.js - Imagine an app
Created by Playingallday383 on 10/2/2023 in #djs-questions
Intents error?
so a friend of mine sent me his discord.js bot and well when I configured the .env stuff and pressed run the repl broke and said: node index.js /home/runner/Proxy-Dispenser/node_modules/@discordjs/ws/dist/index.js:1065 throw new Error("Used disallowed intents"); ^ Error: Used disallowed intents at WebSocketShard.onClose (/home/runner/Proxy-Dispenser/node_modules/@discordjs/ws/dist/index.js:1065:15) at WebSocket.emit (node:events:513:28) at WebSocket.emitClose (/home/runner/Proxy-Dispenser/node_modules/ws/lib/websocket.js:258:10) at TLSSocket.socketOnClose (/home/runner/Proxy-Dispenser/node_modules/ws/lib/websocket.js:1264:15) at TLSSocket.emit (node:events:525:35) at node:net:313:12 at TCP.done (node:_tls_wrap:587:7) Node.js v18.12.1 exit status 1 I am a dev but I have 0 experience with discord bots lmao or what this even means. The intents were provided correctly im pretty sure like so: const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, ], });
12 replies