Invalid Bot Token
Heres my register commands code
AND HERES MY CONSOLE
There was an error: DiscordAPIError[0]: 401: Unauthorized
I understand the simplest answer would be that my token is invalid but i have removed and replaced it like 20 different times to no avail. i have also succesfully run other bots with the same code just fine7 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!That is the answer, no matter what you claim
Must not be being loaded from your environment variables
are you sure have env named
DISCORD_TOKEN1
? and where do you copy the token?I copy from 0Auth2 client secret in discord portal and yes
OAuth2 client secret isn't a token.. you should copy it from the bot section in the dev portal
ah shit
no wonder hold on
ugh i feel so dmb
thank you
it worked found it in bot