Discord Bot DEP0018 Error

Hello. My Discord Bots don’t open. Please Help. Console Log:

(node:1005) UnhandledPromiseRejectionWarning: Error: Something took too long to do.

8:35 AM

at timeout.client.setTimeout (/rbd/pnpm-volume/1b882a8c-f539-495d-9a45-f123b3e9c792/node_modules/.registry.npmjs.org/discord.js/11.6.4/node_modules/discord.js/src/client/ClientManager.js:40:57)

8:35 AM

at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/1b882a8c-f539-495d-9a45-f123b3e9c792/node_modules/.registry.npmjs.org/discord.js/11.6.4/node_modules/discord.js/src/client/Client.js:436:7)

8:35 AM

at ontimeout (timers.js:498:11)

8:35 AM

at tryOnTimeout (timers.js:323:5)

8:35 AM

at Timer.listOnTimeout (timers.js:290:5)

8:35 AM

(node:1005) 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(). (rejection id: 9)

8:35 AM

(node:1005) [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.

Please post your project name in the Discord Ban mega-thread the second! (Discord bot / Something took too long to do) thread. Also you should handle promise rejections by putting something like catch(console.log) after your .then parts of promises

2 Likes

thanks for reply :grin:

1 Like