Modal submit problem

look this is my collector, which collects message from a button
            const msg = await thread.send({ content: null, embeds: [embed], components: [row] });
            message.reply({
                content: `created a new thread, <#${thread.id}>`
            })

            const collector = await msg.createMessageComponentCollector();
            collector.on('collect', async (m) => {


and this is the modal inside of the collector:
                  await m.showModal(modal).catch(console.error);

                    const modalSubmit = await m.awaitModalSubmit({
                      filter: async (mm) => mm.user.id === message.author.id && mm.customId == message.id, 
                      time: 1_800_000
                    });


when i open this modal and click somewhere on the screen, that means to disappear it and execute the modal again, it throws this error
DiscordAPIError[10062]: Unknown interaction
    at handleErrors (G:\#BotBackups\BeastCorp\node_modules\@discordjs\rest\dist\index.js:687:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async BurstHandler.runRequest (G:\#BotBackups\BeastCorp\node_modules\@discordjs\rest\dist\index.js:786:23)
    at async _REST.request (G:\#BotBackups\BeastCorp\node_modules\@discordjs\rest\dist\index.js:1218:22)
    at async ModalSubmitInteraction.reply (G:\#BotBackups\BeastCorp\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
    at async InteractionCollector.<anonymous> (G:\#BotBackups\BeastCorp\src\prefix-commands\thread.js:115:23) {
  requestBody: { files: [], json: { type: 4, data: [Object] } },
  rawError: { message: 'Unknown interaction', code: 10062 },
  code: 10062,
  status: 404,
  method: 'POST',
Was this page helpful?