Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

472
Views
discord.js error 50001: Missing Access while creating slash commands

I've been trying to make slash commands in discord.js for a discord bot (a personal project to practice coding) and I've been getting this error, with no success in trying to solve it... I've already given OAuth2 access to the command creation, so I have no idea what I'm doing wrong.

https://pastebin.com/y5g2P8Cm

DiscordAPIError[50001]: Missing Access
    at SequentialHandler.runRequest (C:\Users\Nicolò\Desktop\colino-bot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:198:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (C:\Users\Nicolò\Desktop\colino-bot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:99:20) {
  rawError: { message: 'Missing Access', code: 50001 },
  code: 50001,
  status: 403,
  method: 'put',
  url: 'https://discord.com/api/v9/applications/914567485158744104/guilds/251345856169508864/commands'
}

EDIT: Solved, apparently I just removed some permissions and now it works... I have no clue why it works this way, but ok.

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

When your bot is added to a server via an OAuth2 link it requires the application.commands to be able to register slash commands.

Even if you update the scopes in your link the bot has to be removed and then re-added back to the server with the new link for the changes to take effect.

Learn more about discord OAauth2 scopes here

about 4 years ago · Juan Pablo Isaza Report

0

EDIT: Solved, apparently I just removed some permissions and now it works... I have no clue why it works this way, but ok.

about 4 years ago · Juan Pablo Isaza Report

0

Anyone encountering this problem the solution is pretty simple.

It DOES NOT depend on the permissions that have been provided to the bot when creating the OAuth2 link to invite the bot. It is not enough to just select the bot option, the applications.commands option also needs to be selected, see captured screenshot in the following link

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!