An invalid token was provided.
I have already recreated the token several times, changed everything and everything exactly gives an error
22 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Ur not providing a token into client.login
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Or it’s null/undefined (or anything besides a non-empty string)
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Yes, I tried inserting the token into clietn.login(), but it didn't help
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
is it convenient to view it like this?
do you know how to fix it?
can you log the token before you try to login
?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
it doesn't output anything
then that means you didn't configure your environment correctly
But I didn't touch the code, reinstalled Windows yesterday, saved the code, did everything, and here comes this error
do you have a .env file
ye
change your code to this:
require('dotenv').config({ debug: true });
see if it logs anythingtry to change tkn variable name