Hey there so, I am getting issues with my Discord Bot using discord.js
Logs
This is an error I am getting: 2019-09-27T11:02:07.248Z '[ws] Attempted to destroy WebSocket but no connection exists!' (node:417) UnhandledPromiseRejectionWarning: Error: Something took too long to do.
It should log Bot#1873 is ready, but it isn’t logging that.
It also logs this as a part of the debug: 2019-09-27T11:04:43.896Z 'Authenticated using token TOKEN_WHICH_IS_VALID'
I tried running the refresh command at the Glitch Console, and resetting the bot token, but none of these helped.
As the error suggests, the client token is invalid.
Direct message your project collaboration URL so I can take a closer look.
Furthermore, follow the instructions here: discordjs/discord.js/311942193 and catch the error from login() to see if we can sort out where the breakdown is occurring; it might show us a little more detail.