Error 10062 [Uknown Interaction]
So, i have this bot which we use in our server to manage the criminal roleplay.
we wanted to create a isolated economy systems whit crypto, so the first step needed was to make a command to request the bitcoin on a person/ his mafia, via a payment, made on the other economy bot, which is owned by another manager and can't share his DB with mine.
So the user has to make the payment, insert the amount of cash he payed and the photo proof of the payment.
On another channel the mods can see this and accept/deny the request.
the bot will then fetch the user on the DB and add the bitcoins
but i get this weird interaction which i can't fix, after 2 days of work
here you can have the code and the logs of the debugger.
Please help i have no idea how to fix this
8 Replies
- 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!also this is the DB of the requests, i had a couple of other methods involving not using ad embed but a text message, so you can just forget about the last column

Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds ➞ defer the response *.
- Wrong interaction object inside a collector.
- Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
* Note: you cannot defer modal or autocomplete value responsesalso you do not need to fetch channels if you have the guilds intent
but check the bullet points
i'll try this, you'll recieve an update
for now thanks
@treble/luna i got to make it work, but now i get this error
Errore durante la gestione dell'interazione: Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.deferUpdate (C:\Users\tomma\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:293:46)
at InteractionCollector.<anonymous> (C:\Users\tomma\Desktop\work\PROJECT_Krypton\KRYPTON\src\commands\requestBitcoin.js:130:25)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'InteractionAlreadyReplied'
}
i had this, with some commands developed in the past, but even with the methods i used i can't fix it, the bot just answers 2 times instead of one.
this is the updated code:then you are replying twice to the same interaction
either duplicate listerers or instances
k