BUTTON INTERACTION ERROR EXCEPTION CRASHES APP
What could be the problem that sometimes clicking a button it throws this error?
requestBody: { files: undefined, json: { type: 6 } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
6 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Common causes of
DiscordAPIError[10062]: Unknown interaction
:
• Initial response took more than 3 seconds ➞ defer the response *.
• Wrong interaction object inside a collector.
* Note: you cannot defer modal or autocomplete value responsesWhen I do defer reply and reply to it I get 'InteractionAlreadyReplied'
@qjuh
and when I edit reply I get bot message is thinking...
any way to prevent that?
Thats what I do
I use initial button interaction to defer reply, then pass it to the method and in the method I use interaction.message.edit
ohh gotcha
now
kk tyvmm
only issue is that it will reply to the message but not replace it
any idea how to make it update instead of make a new reply?
defer update worked
Or just update