Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

474
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda