LunarTaku / djs-ticket-system

This DJS ticket system with transcripts is fully configurable, you can change the transcripts channel, tickets channel, and more! This command uses embeds, and buttons.
GNU General Public License v3.0
7 stars 9 forks source link

i am getting this error while closing the ticket #13

Closed Habeeb30 closed 2 years ago

Habeeb30 commented 2 years ago

DiscordAPIError[10062]: Unknown interaction at SequentialHandler.runRequest (B:\Coding\FunGamers Discord Bot v14\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:287:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async SequentialHandler.queueRequest (B:\Coding\FunGamers Discord Bot v14\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:99:14) at async REST.request (B:\Coding\FunGamers Discord Bot v14\node_modules\@discordjs\rest\dist\lib\REST.cjs:52:22) at async ButtonInteraction.reply (B:\Coding\FunGamers Discord Bot v14\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:110:5) at async Object.execute (B:\Coding\FunGamers Discord Bot v14\Events\Interactions\ticketInteraction.js:193:7) { rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1011229055724552222/aW50ZXJhY3Rpb246MTAxMTIyOTA1NTcyNDU1MjIyMjpCb3pRMjdiNWpRUGQ4Mk0wVGVsd2NDakRDbzhrNndrdTd3enBVVURkeHgyVVRmSENsczFKOXRsTGtQUDkzeW9oNk4wd2hZN0FRa2RpVVdONHEwaEFHSVJBdmpuWmJCZzdwajZVV0FublhuR3B6bTV5NTh5N3NZcDZkNUZnamk0UA/callback', requestBody: { files: [], json: { type: 4, data: [Object] } } }

duckodas commented 2 years ago

What have you changed in in the system and what file?

LunarTaku commented 2 years ago

add await before the interaction.reply, that should fix it.