Jesse
Jesse
SIASapphire - Imagine a framework
Created by Jesse on 1/14/2024 in #sapphire-support
Unknown Interaction
For some reason whenever my bot reboots, commands that clearly exist will error with “Discord API Error: Unknown Interaction”. The strange part about this is that it will often execute the command and then error. Is there some way to avoid this? It has also randomly happened on times that wasn’t after a reboot as well.
20 replies
SIASapphire - Imagine a framework
Created by Jesse on 6/16/2023 in #sapphire-support
Slash Commands
Hey, has anyone experienced issues with slash commands randomly deregistering? This has been happening to me every week or so. There are no errors in the logs, so I’m confused as to what exactly is going on.
5 replies
SIASapphire - Imagine a framework
Created by Jesse on 4/4/2023 in #sapphire-support
unknown interaction error
Is there a reason why I keep getting random unknown interaction errors? [2023-04-04 00:16:12] [ERROR] Encountered error on chat input command "translate" at path "/workspace/src/commands/basic/translate.js" DiscordAPIError: Unknown interaction [biit] [2023-04-04 00:16:12] at RequestHandler.execute (/workspace/node_modules/discord.js/src/rest/RequestHandler.js:350:13) [biit] [2023-04-04 00:16:12] at processTicksAndRejections (node:internal/process/task_queues:96:5) [biit] [2023-04-04 00:16:12] at async RequestHandler.push (/workspace/node_modules/discord.js/src/rest/RequestHandler.js:51:14) [biit] [2023-04-04 00:16:12] at async CommandInteraction.reply (/workspace/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:103:5) [biit] [2023-04-04 00:16:12] at async TranslateCommand.chatInputRun (/workspace/src/commands/basic/translate.js:59:12) [biit] [2023-04-04 00:16:12] at async /workspace/node_modules/@sapphire/framework/dist/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.js:17:28 [biit] [2023-04-04 00:16:12] at async Object.fromAsync (/workspace/node_modules/@sapphire/result/dist/index.js:615:22) [biit] [2023-04-04 00:16:12] at async CoreListener.run (/workspace/node_modules/@sapphire/framework/dist/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.js:14:24) [biit] [2023-04-04 00:16:12] at async Object.fromAsync (/workspace/node_modules/@sapphire/result/dist/index.js:615:22) [biit] [2023-04-04 00:16:12] at async CoreListener._run (/workspace/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:93:24) { [biit] [2023-04-04 00:16:12] method: 'post', [biit] [2023-04-04 00:16:12] path: '/interactions/1092603447557234769/aW50ZXJhY3Rpb246MTA5MjYwMzQ0NzU1NzIzNDc2OTpxa1pITUFVcEFuNm03ZFhpZmZNS3lOR0RxUUZaZGdmZmVHVXU0U05KRzZiWVhoazRDUWlNRkdOeDhSRFFTRlNVa24zT3RJY0szeWt1Vml1TzhKRnI4anQ3TjE1UGp2N2ZCblkwSWF0UmlBSXlTNzFjM041cUZvRzlRVTBiZFV1Sw/callback', [biit] [2023-04-04 00:16:12] code: 10062, [biit] [2023-04-04 00:16:12] httpStatus: 404, [biit] [2023-04-04 00:16:12] requestData: { json: { type: 4, data: [Object] }, files: [] } [biit] [2023-04-04 00:16:12] }
12 replies
SIASapphire - Imagine a framework
Created by Jesse on 3/30/2023 in #sapphire-support
Adding preconditions to a slash command?
Is there a way to add a precondition to an application command? I'm not sure if it works the same as the old chat commands or if I would have to hardcode them into each command.
4 replies