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
d.js toolkit
d.js toolkit4d 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!
Th3_KaKtuZz-_-
Th3_KaKtuZz-_-OP4d ago
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
No description
d.js docs
d.js docs4d ago
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 responses
treble/luna
treble/luna4d ago
also you do not need to fetch channels if you have the guilds intent but check the bullet points
Th3_KaKtuZz-_-
Th3_KaKtuZz-_-OP4d ago
i'll try this, you'll recieve an update for now thanks
Th3_KaKtuZz-_-
Th3_KaKtuZz-_-OP4d ago
@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:
treble/luna
treble/luna4d ago
then you are replying twice to the same interaction either duplicate listerers or instances
Th3_KaKtuZz-_-
Th3_KaKtuZz-_-OP4d ago
k

Did you find this page helpful?