"Interaction has already been acknowledged" after invoking a command twice in a row
Good morning,
I've been encoutering an issue when trying to execute a command twice in a row.
My button interaction collector is withing my command, with the code below :
In my handleButtons function, here's the case where I'm having the issue :
In addition, I see that the message still updates even if I get the error, so I'm a bit confused.
Actually, note that once I clicked the button, my
updatedButtons
will not contain anymore the button that has been clicked. Could it be the reason of such an issue ?
Thanks for your help3 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!
- ✅
Marked as resolved by staffIf you are waiting for button or select menu input from a specific message, don't create the collector on the channel.
- Channel collectors return component interactions for any component within that channel.
It worked, thanks.