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

423
Vistas
DiscordAPIError: Missing Access when running discord.js bot command

When I start the bot and use my "ping" command I get this error:

    js:350
          throw new DiscordAPIError(data, res.status, request);
                ^
    
    DiscordAPIError: Missing Access
        at RequestHandler.execute (C:\Users\LiamS\OneDrive\Documenten\Chill Lounge\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async RequestHandler.push (C:\Users\LiamS\OneDrive\Documenten\Chill Lounge\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
        at async GuildApplicationCommandManager.set (C:\Users\LiamS\OneDrive\Documenten\Chill Lounge\node_modules\discord.js\src\managers\ApplicationCommandManager.js:156:18)
        at async Client.<anonymous> (C:\Users\LiamS\OneDrive\Documenten\Chill Lounge\handler\index.js:45:9) {
      method: 'put',
      path: '/applications/996753512807530637/guilds/996381328255750206/commands',
      code: 50001,
      httpStatus: 403,
      requestData: {
        json: [
          {
            name: 'ping',
            name_localizations: undefined,
            description: 'returns websocket ping',
            description_localizations: undefined,
            type: 1,
            options: undefined,
            default_permission: undefined
          }
        ],
        files: []
      }
    }

Can someone please help me?

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

It's a guess, because you didn't post any code, but I'm assuming that you are trying to register "ping" slash command on a specific guild (aka "server"), and the error is likely because your bot is lacking application.commands scope on that guild and therefore can't register that command.

So try re-inviting the bot to that guild with application.commands scope included and see if it helps.

about 4 years ago · Santiago Gelvez 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