Glitch project won't stop erroring on a API


#1

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


#2

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.


#3

How do I direct message you a link


#4

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


#5

Sent.

Also how do I make my glitch project private because I’ve been making random string letters to protect my project


#6

You can make your project’s code private by opening the top-left Project Info menu and then clicking on the lock icon.


#7

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


#8

So the Glitch project will switch IPs?