I have an error that i cannot solve.

This error is just a console error but it works fine for me to the but, there is obv a problem. My code: https://sourceb.in/Jd8ZsB3U2d My error: Error handling modal submission: DiscordAPIError[10062]: Unknown interaction at handleErrors (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:727:13) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async BurstHandler.runRequest (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:831:23) at async _REST.request (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:1272:22) at async ModalSubmitInteraction.reply (D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:115:5) at async Client.<anonymous> (D:\dcbot321312\index.js:71:11) { 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/1292418026485977242/aW50ZXJhY3Rpb246MTI5MjQxODAyNjQ4NTk3NzI0MjpnQjlCUlBoMXB2N01VWWJ4b01XMXhUN0d0Tkk1bTl2MW13aGxPMnE2bjVnUTFoQ1JGeWZTUVVMeFJaa0xNOFk3OEFvM3ZsR3hxWnFmbkU1cHUxRUEyaXFYY1JsUndyWU00VTNWMkl1NHN6TTk0R3hWZERMWTBZOXF0QlRmTGZ1OQ/callback' }
3 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna2mo ago
your error likely comes from your awaitModalSubmit since if you cancel one the collector will collect the second one aswell add a nonce, like the interaction id, in your customId and check against that
BMmarci1234
BMmarci1234OP2mo ago
let me try.
Want results from more Discord servers?
Add your server