17teen / Discord-Presser-Server-Nuker

Nuke Discord Bot in Js (Beta has arrived)
329 stars 373 forks source link

help #27

Closed TheStrongGamerYT closed 2 years ago

TheStrongGamerYT commented 2 years ago

(node:8216) UnhandledPromiseRejectionWarning: Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted. at WebSocketManager.createShards (C:\Users\apost\OneDrive\Desktop\Discord-Presser-Server-Nuker-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:258:15) at async Client.login (C:\Users\apost\OneDrive\Desktop\Discord-Presser-Server-Nuker-master\node_modules\discord.js\src\client\Client.js:223:7) (Use node --trace-warnings ... to show where the warning was created) (node:8216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:8216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

GuiMF commented 2 years ago

You have to go to bot and enable Privileged Gateway Intents, and remember to save, had the same problem and this was the solution :)

m-bobi commented 2 years ago

image Make sure these are enabled, you can find them in Discord Developers Page > Bot > Scroll down to Privileged Gateway Intents and enable both of them.