401 not authorized

everytime i try to start my bot i get this error.
12 Replies
d.js toolkit
d.js toolkit9mo ago
- 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! - Marked as resolved by OP
᲼᲼
᲼᲼OP9mo ago
DiscordAPIError[0]: 401: Unauthorized
requestBody: {
files: undefined,
json: [ [Object], [Object], [Object], [Object], [Object] ]
},
code: 0,
method: 'PUT',
DiscordAPIError[0]: 401: Unauthorized
requestBody: {
files: undefined,
json: [ [Object], [Object], [Object], [Object], [Object] ]
},
code: 0,
method: 'PUT',
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
᲼᲼
᲼᲼OP9mo ago
DiscordAPIError[0]: 401: Unauthorized
at handleErrors (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\src\functions\handelCommands.js:28:17 {
requestBody: {
files: undefined,
json: [ [Object], [Object], [Object], [Object], [Object] ]
},
code: 0,
method: 'PUT',
DiscordAPIError[0]: 401: Unauthorized
at handleErrors (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async C:\Users\Dylan\OneDrive\Desktop\LSPD Bot\src\functions\handelCommands.js:28:17 {
requestBody: {
files: undefined,
json: [ [Object], [Object], [Object], [Object], [Object] ]
},
code: 0,
method: 'PUT',
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
darp
darp9mo ago
invalid token
᲼᲼
᲼᲼OP9mo ago
just reset it
darp
darp9mo ago
there no need for code in that case
᲼᲼
᲼᲼OP9mo ago
+ the bot came online just doesnt create new commands
darp
darp9mo ago
then show code that you're using to create commands
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
᲼᲼
᲼᲼OP9mo ago
bruh nvm i found the problem im geeking
Want results from more Discord servers?
Add your server