Closed brian-gates closed 2 years ago
When you are using the slash commands you have 3 seconds to response.
https://stackoverflow.com/a/68774492/786729
A solution might be to create an empty response immediately, then have the command handlers edit it once they're finished.
https://github.com/brian-gates/adventure-bot/blob/main/src/index.ts#L65
Full Stack
``` E:\adventure-bot\adventure-bot\node_modules\discord.js\src\rest\RequestHandler.js:349 throw new DiscordAPIError(data, res.status, request); ^ DiscordAPIError: Unknown interaction at RequestHandler.execute (E:\adventure-bot\adventure-bot\node_modules\discord.js\src\rest\RequestHandler.js:349:13) at runMicrotasks (https://stackoverflow.com/a/68774492/786729
A solution might be to create an empty response immediately, then have the command handlers edit it once they're finished.
https://github.com/brian-gates/adventure-bot/blob/main/src/index.ts#L65