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
d.js toolkit
d.js toolkit14mo ago
• 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.
d.js docs
d.js docs14mo ago
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 responses
Deerlo
Deerlo14mo ago
When 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?
Deerlo
Deerlo14mo ago
Thats what I do
Deerlo
Deerlo14mo ago
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
DUCKODAS
DUCKODAS14mo ago
Or just update