Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.

(path)
ode_modulesdiscord.jssrcclientwebsocketWebSocketManager.js:244
        throw new Error(WSCodes[error.code]);
              ^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (C:UsersAdminDesktopDiscord bot
ode_modulesdiscord.jssrcclientwebsocketWebSocketManager.js:244:15)
    at async Client.login (C:UsersAdminDesktopDiscord bot
ode_modulesdiscord.jssrcclientClient.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!

 
PREVIOUS NEXT
Tagged: #Error #Privileged #intent #enabled
ADD COMMENT
Topic
Name
5+7 =