Hey, I am getting the error
(node:1939) UnhandledPromiseRejectionWarning: Error: Something took too long to do.
I see the bot doesn’t log in correctly into Discord (though the Token is correct)
I also get
[ws] Attempted to destroy WebSocket but no connection exists!
This is also happening to a Friend’s Discord.JS bot hosted on Glitch.
Any ideas on how to solve this?
Hello, I would suggest moving your concerns over to this post, so it will be easier to handle!
4 Likes
Have you tried curl -I https://discordapp.com/api/v7/gateway
in the console?
Hey @Dream51
You can try in console as
npm rebuild
it fixes all your problems!
No, that isn’t a npm problem. It is the project is on a banned host. “Banned bot by discord”
3 Likes