#Unable to register Slash commands

16 messages · Page 1 of 1 (latest)

orchid imp
#

i am getting 401 error while trying to register slash commands
the error:

> discord-getting-started@1.0.0 register
> node commands.js

401
Error: {"message":"401: Unauthorized","code":0}
    at DiscordRequest (file:///C:/Users/Dharamveer/Desktop/Discord%20app/discord-example-app/utils.js:21:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async InstallGlobalCommands (file:///C:/Users/Dharamveer/Desktop/Discord%20app/discord-example-app/utils.js:33:5)
lost zincBOT
orchid imp
#

there is no issue in this code because its the rock papper scissor bot given in begiiner guide

worn cove
#

then your token and clientid dont match or are invalid

orchid imp
#

reset and pasted 3 times

worn cove
#

the error implies otherwise
show the full error please

orchid imp
worn cove
#

I am once again asking for code

#

I'm not aware of any RPS beginner guide

#

where is this from

orchid imp
worn cove
#

that has nothing to do with discord.js

#

#useful-servers ddevs

orchid imp