I use Glitch to run my Discord bot’s codes but it is giving error since 10-15 minutes. It says Error: Incorrect login details were provided
but I am sure that the token is not wrong. I changed the token and resetted the token in the config file and restarted my bot but it did not change. I did this several times. How can I solve this?
Hey @kenux,
Is your token in your .env or config.json? if its in your .env then your logon part should look like this
.login(process.env.);
Replace with what you call discord.js with and to what variable it is set
if you did something like this:
client.login(1234qwerty);
use ’ in the token, like this:
client.login(‘1234qwerty’);
Hope this helps!
I am sure that I typed the variable names etc. correct. I replaced the token several times.
Make sure you are getting the bot token, not the Discord app id.