Skip to content

Fix Missing Permissions errors #16

@Colind8

Description

@Colind8

Occurs when someone runs a command when Megee doesn't have message sending permissions.

DiscordAPIError: Missing Permissions
    at RequestHandler.execute (C:\Users\colin\Documents 2\Docs\Mr. Megee\Mr-Megee\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\colin\Documents 2\Docs\Mr. Megee\Mr-Megee\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
    at async TextChannel.send (C:\Users\colin\Documents 2\Docs\Mr. Megee\Mr-Megee\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:176:15)
    at async Object.execute (C:\Users\colin\Documents 2\Docs\Mr. Megee\Mr-Megee\commands\ping.js:7:3)
    at async Client.<anonymous> (C:\Users\colin\Documents 2\Docs\Mr. Megee\Mr-Megee\index.js:111:3) {
  method: 'post',
  path: '/channels/1089231257201811466/messages',
  code: 50013,
  httpStatus: 403,
  requestData: {
    json: {
      content: 'Pong!',
      tts: false,
      nonce: undefined,
      embeds: undefined,
      components: undefined,
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined
    },
    files: []
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions