Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid commands cause the bot to not respond #283

Open
violine1101 opened this issue Jun 27, 2023 · 0 comments
Open

Invalid commands cause the bot to not respond #283

violine1101 opened this issue Jun 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@violine1101
Copy link
Member

The Bug

When running the command:

/search query:-1

the bot does not respond, with the following error message:

[ERROR] SlashCommandExecutor - DiscordAPIError[10062]: Unknown interaction
    at SequentialHandler.runRequest (/home/mojiradiscordbot/mojira-discord-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:287:15)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (/home/mojiradiscordbot/mojira-discord-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:99:14)
    at async REST.request (/home/mojiradiscordbot/mojira-discord-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:22)
    at async ChatInputCommandInteraction.reply (/home/mojiradiscordbot/mojira-discord-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:110:5)
    at async SearchCommand.run (file:///home/mojiradiscordbot/mojira-discord-bot/bin/src/commands/SearchCommand.js:53:13)
    at async Object.execute (file:///home/mojiradiscordbot/mojira-discord-bot/bin/src/commands/commandHandlers/SlashCommandRegister.js:26:39)
  at async Client.InteractionEventHandler.onEvent (file:///home/mojiradiscordbot/mojira-discord-bot/bin/src/events/interaction/InteractionEventHandler.js:13:21) {
  rawError: { message: 'Unknown interaction', code: 10062 },
  code: 10062,
  status: 404,
  method: 'POST',
url: 'https://discord.com/api/v10/interactions/[...]/[...]/callback',
requestBody: { files: [], json: { type: 4, data: [Object] } }
}
@violine1101 violine1101 added the bug Something isn't working label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant