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

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

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 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