The reply to this interaction has already been sent or deferred (Use interaction.update > once)
Hello, to start this off:
I'm already updating this interaction for the first time, and if the user presses on a button, I was doing this:
But I get an error that says
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
which I understood what it meant, so I used .editReply
instead but the problem with using .editReply
is that after you interact with a button it says This interaction failed.
Is there any way around this?6 Replies
- 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!Forgot to attach image.
You mean this as the stacktrace?
If I use
.update
, the console throws that error and nothing happens to the embed.
If I use .editReply
, the embed does get changed and the buttons are functional but with the error message This interaction failed
at the bottom of the buttons.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
That worked, thank you.
As for not using
interaction.update
again, I understood that from the error message I got from the console. Just was wondering/asking if there's a way to update the message similar to interaction.update
.