Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

481
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda