Could someone please help me, my token is right, it won’t work. I’m getting this error:
(node:2537) UnhandledPromiseRejectionWarning: Error [TOKEN_INVALID]: An invalid token was provided.
at WebSocketManager.connect (/rbd/pnpm-volume/a965e879-89ee-4dfc-88eb-9c10f541d445/node_modules/.github.com/discordjs/discord.js/1330e2d246cf4e1b9e7f13a5f941ff086117a3fc/node_modules/discord.js/src/client/websocket/WebSocketManager.js:135:26)
at CommandoClient.login (/rbd/pnpm-volume/a965e879-89ee-4dfc-88eb-9c10f541d445/node_modules/.github.com/discordjs/discord.js/1330e2d246cf4e1b9e7f13a5f941ff086117a3fc/node_modules/discord.js/src/client/Client.js:221:21)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
(node:2537) 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: 1)
(node:2537) [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.
This is probably because you put the incorrect token. Try going on https://discordapp.com/developers/applications and then press your bot app then press Bot and get the token? Are you using your .env file to hold your token?