Weird Unauthorized Error

I just came from school and I am shocked to find this peculiar error.

(node:1024) UnhandledPromiseRejectionWarning: Error: Unauthorized
at Request.callback (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/superagent/2.3.0/node_modules/superagent/lib/node/index.js:626:17)
at /rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/superagent/2.3.0/node_modules/superagent/lib/node/index.js:795:18
at IncomingMessage.<anonymous> (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/superagent/2.3.0/node_modules/superagent/lib/node/parsers/json.js:16:7)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:1024) 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:1024) [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.
(node:1024) UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided.
at WebSocketManager.client.ws.once.event (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/discord.js/10.0.1/node_modules/discord.js/src/client/ClientManager.js:36:41)
at Object.onceWrapper (events.js:277:13)
at WebSocketManager.emit (events.js:189:13)
at WebSocketManager.eventClose (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/discord.js/10.0.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:195:10)
at WebSocket.ws.onclose (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/discord.js/10.0.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:82:35)
at WebSocket.onClose (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/ws/1.1.5/node_modules/ws/lib/WebSocket.js:446:14)
at WebSocket.emit (events.js:189:13)
at WebSocket.cleanupWebsocketResources (/rbd/pnpm-volume/ba0fe215-1e9d-416e-994e-c4f1eeae9fd8/node_modules/.registry.npmjs.org/ws/1.1.5/node_modules/ws/lib/WebSocket.js:950:8)
at TLSSocket.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
(node:1024) 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: 2)

And I don’t know what it is being emitted by.

Incorrect login details were provided.
Perhaps the bot was disconnected from the API because the token changed?

Reset the token at https://discordapp.com/developers/applications/me, edit the token in your bot’s code/config and restart the bot.

Yeah discord reset the tokens. Forgot to close. XD

whys that weird? google is your bestfriend