The reply to this interaction has already been sent or deferred.

/root/discord_bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:225
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.update (/root/discord_bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:225:46)
at InteractionCollector.<anonymous> (/root/discord_bot/commands/inventory.js:213:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'InteractionAlreadyReplied'
}
/root/discord_bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:225
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.update (/root/discord_bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:225:46)
at InteractionCollector.<anonymous> (/root/discord_bot/commands/inventory.js:213:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'InteractionAlreadyReplied'
}
help i got this error while try to update button. I want when press detail, all 6 button change to something else
4 Replies
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
d.js docs
d.js docs15mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.
duck
duck15mo ago
for future after using deferUpdate, you'll want to use editReply to actually update the button's message update and deferUpdate both can only be used as the initial response to an interaction
Not Toby
Not TobyOP15mo ago
thanks it work now
Want results from more Discord servers?
Add your server