Yesterday, I was working on some embed command for my Discord bot which then I added color option that started to cause issues.
I re-winded the project today the day before I tried to make the embed project.
Even so, the DiscordAPIError won’t stop coming up.
If anyone don’t mind can they help me fix this error?
I tried removing 99% of my code leaving only
const Discord = require(“discord.js”);
const client = new Discord.Client();
client.login(“token”);
and the bot still won’t start http://prntscr.com/jx6ngh
Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.
If you click on my name you might see an option to send me a message. But if you’re new, you might not see it yet. In that case, mail it to me at gwilson@fogcreek.com
client.login() was the cause. I’ve added a catch to output the error without breaking your project. The underlying issue looks like it might be related to One of the Glitch IPs is banned by Discord