muse icon indicating copy to clipboard operation
muse copied to clipboard

rawError: { message: 'Missing Access', code: 50001 }

Open gamer228 opened this issue 3 years ago • 4 comments

Hello,

I'm having some problems getting the bot to work, here's the output with the error. I hope someone can help me out?

✔ Database migrations applied.
⠹ 📡 updating commands in all guilds...DiscordAPIError[50001]: Missing Access
    at SequentialHandler.runRequest (file:///usr/app/node_modules/@discordjs/rest/dist/index.mjs:670:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (file:///usr/app/node_modules/@discordjs/rest/dist/index.mjs:473:14)
    at async registerCommandsOnGuild (file:///usr/app/src/utils/register-commands-on-guild.ts:3:3)
    at async file:///usr/app/src/bot.ts:111:13
    at async Promise.all (index 0)
    at async Client.<anonymous> (file:///usr/app/src/bot.ts:109:9) {
  rawError: { message: 'Missing Access', code: 50001 },
  code: 50001,
  status: 403,
  method: 'put',
  url: 'https://discord.com/api/v10/applications/979141860264120391/guilds/241131244216123392/commands',
  requestBody: {
    files: undefined,
    json: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object]
    ]
  }
}
⠦ 📡 updating commands in all guilds...

gamer228 avatar May 26 '22 00:05 gamer228

I have exactly the same problem, but I do not have a clue how to fix it.

joepboumans avatar May 27 '22 15:05 joepboumans

Issue is what it says, the bot isn't allowed to create slash commands in your guild. Try kicking Muse and make sure you re-invite with the logged invite link.

codetheweb avatar May 27 '22 22:05 codetheweb

i have this issue too, bot has full administrator access to the server so im stumped

samrudd avatar Jul 03 '22 11:07 samrudd

V1 changed the permissions since slash commands were introduced. If you've been using Muse for a while you'll have to re-invite.

codetheweb avatar Jul 03 '22 19:07 codetheweb