Błąd [Disallowed_intentents]
(path)\node_modules\discord.js\src\client\websocket\WebSocketManager.js:244
throw new Error(WSCodes[error.code]);
^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (C:\Users\Admin\Desktop\Discord bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:244:15)
at async Client.login (C:\Users\Admin\Desktop\Discord bot\node_modules\discord.js\src\client\Client.js:245:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
=========================
if u see this error it mean you forgot turn on Privileged Gateway Intents
first you follow this link https://discord.com/developers/applications
in My Applications choose your bot
Scroll down and you will see Privileged Gateway Intents
turn on PRESENCE INTENT and SERVER MEMBERS INTENT
now the problem has been solved!
defud12345