CorwinDev / Discord-Bot

Discord Bot with over 400 commands and made for large servers
MIT License
686 stars 612 forks source link

Problem #52

Closed hikaoffical1 closed 1 year ago

hikaoffical1 commented 1 year ago

i start bot and this error [UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] { code: 'ERR_UNHANDLED_REJECTION'

CorwinDev commented 1 year ago

If running on replit: kill 1 then start the bot again

hikaoffical1 commented 1 year ago

Thanks

hikaoffical1 commented 1 year ago

/reopen

hikaoffical1 commented 1 year ago

Another problems

Unhandled promise rejection: Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted. at WebSocketManager.createShards (/home/runner/Discord-Bot-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15) at async Client.login (/home/runner/Discord-Bot-1/node_modules/discord.js/src/client/Client.js:226:7) { code: 'DisallowedIntents' } /home/runner/Discord-Bot-1/node_modules/discord.js/src/sharding/Shard.js:167 reject(new DiscordjsError(ErrorCodes.ShardingReadyTimeout, this.id)); ^

Error [ShardingReadyTimeout]: Shard 0's Client took too long to become ready. at Timeout.onTimeout (/home/runner/Discord-Bot-1/node_modules/discord.js/src/sharding/Shard.js:167:16) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) { code: 'ShardingReadyTimeout'

CorwinDev commented 1 year ago

Please join our discord, there is also a advanced tutorial on how to set this up. This isn't a issue...

Join our discord for fastest support
0xj0n1 commented 1 year ago

/reopen

0xj0n1 commented 1 year ago

I have the same problem

0xj0n1 commented 1 year ago
🚨・Unhandled promise rejection
Error
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
Stack error
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (/home/runner/Critical/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
    at async Client.login (/home/runner/Critical/node_modules/discord.js/src/client/Client.js:226:7)
CorwinDev commented 1 year ago

No need to post this 2 times, and we handle errors like this in our discord https://discord.gg/corwindev-1016942011024158782