#Error with discord.js rest

15 messages · Page 1 of 1 (latest)

lean light
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

haughty ledge
#

As I told you yesterday, 401 Unauthorised means your token is incorrect

pastel beaconBOT
#

Finding your bot token:
• Visit the application dashboard and select your application
• Navigate to the Bot tab (not General Information, not OAuth2)!
• Click Reset Token and copy token | https://i.imgur.com/c12eP0t.png (image)
Note: Remember to change the token in your application after you reset it

prime garnet
#

I did all the things I could man

haughty ledge
#

Youre definitely using a token and not a client secret or something

prime garnet
#

Nvm

#

I just realized

#

this whole time

#

I was using client secret and not

haughty ledge
#

Yeah

#

glad its fixed

prime garnet
#

Yeah