Skip to content

Commands occasionally fail with an 'Unknown interaction' Discord API error #41

@pfist

Description

@pfist

Was this issue already reported?

  • I have searched the existing issues

On which platform did you encounter this issue?

Desktop app

What happened

A moderator tried using the Ban command, and the command failed. The logs report the following error:

DiscordAPIError[10062]: Unknown interaction
  at handleErrors (.../quinn/node_modules/@discordjs/rest/dist/index.js:640:13)
  at runMicrotasks (<anonymous>)
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async BurstHandler.runRequest (.../quinn/node_modules/@discordjs/rest/dist/index.js:736:23)
  at async REST.request (.../quinn/node_modules/@discordjs/rest/dist/index.js:1387:22)
  at async ChatInputCommandInteraction.reply (.../quinn/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
  at async Ban.run (.../quinn/src/commands/moderation/ban.js:104:9)
  at async CommandHandler.handleSlashCommand (.../quinn/node_modules/hiei.js/src/commands/CommandHandler.js:110:7) {
  requestBody: { files: [], json: { type: 4, data: [Object] } },
  rawError: { message: 'Unknown interaction', code: 10062 },
  code: 10062,
  status: 404,
  method: 'POST',
  url: 'https://discord.com/api/v10/interactions/.../callback'
}

What you expected

Commands should never return an Unknown interaction error.

Steps to reproduce

Unknown

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions