#GUILDS and GUILD MEMBERS intent And how
1 messages · Page 1 of 1 (latest)
these are intents that I have
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
],
});
you need Intents.FLAGS.GUILD_MEMBERS IIRC
but when I add the GUILD_MEMBERS
throw new Error(WSCodes[error.code]);
^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (F:\Nas repos\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:245:15)
at async Client.login (F:\Nas repos\discord-bot\node_modules\discord.js\src\client\Client.js:254:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
thats because its a privallged intent
you need to allow it in your bot dashboard
did you save the settings?
this is starting to get stupid
why does discord have to be pain
did you fully restart hte bot
tip: you can simply tun nodemon . and itll do the same thing