This interaction failed but components are working
I'm trying to create an interactive settings command by using interactable dropdown menus and buttons. Everything works fine but when I editReply the interaction after the user selects an option, the following edits show an "This interaction failed" message yet everything works just fine.
Here's a screenshot and the snippet that's causing the issue
8 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 OPDocumentation suggestion for @LolGamer:
:method: SelectMenuInteraction#update()
Updates the original message of the component on which the interaction was received on.
use that instead, since that'll actually reply to the interaction
I tried going the update way, but it says not a method
use it on your confirmation interaction since that's the select menu interaction
Oh, so, instead of passing the og interaction I should use the confirmation, correct?
yes since that's the component interaction
using it in the original interaction would throw an error since you already replied to that one
it shouldn't say it's not a method though, that's weird
but anyways you aren't using it either way
Yep, passing on the confirmation rather than the original interaction solved it.
You are a real one Amgelo
It did since the og Interaction was, well... an interaction, BaseInteraction does not have update but ChatInputCommandInteraction does