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 toolkit2y 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 docs2y 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
DeerloOP2y 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
DeerloOP2y ago
Thats what I do
Deerlo
DeerloOP2y 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
DUCKODAS2y ago
Or just update
Want results from more Discord servers?
Add your server