Error 401 "Unauthorised Code" when running npm run register

Hey, i’ve been trying to program an discord bot using the official Tutorial (the project: https://chain-exclusive-license.glitch.me), everytime im trying to run “npm run register” i get the following errors:
401
Error: {“message”:“401: Unauthorized”,“code”:0}
at DiscordRequest (file:///app/utils.js:36:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async InstallGlobalCommands (file:///app/utils.js:48:5)

Any idea how to fix this or what causes it (maybe it’s something with my vpn?)
This is the Tutorial i was Following: Discord Developer Portal

Incase of the above Project Link not working: it is the exact same project (only remixed) as of in the tutorial, the only thing i’ve changed are the credentials in the .env file

I have also had the same issue.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.