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
d.js toolkit
d.js toolkit8mo 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 docs8mo ago
Documentation suggestion for @LolGamer: :method: SelectMenuInteraction#update() Updates the original message of the component on which the interaction was received on.
Amgelo
Amgelo8mo ago
use that instead, since that'll actually reply to the interaction
LolGamer
LolGamerOP8mo ago
I tried going the update way, but it says not a method
Amgelo
Amgelo8mo ago
use it on your confirmation interaction since that's the select menu interaction
LolGamer
LolGamerOP8mo ago
Oh, so, instead of passing the og interaction I should use the confirmation, correct?
Amgelo
Amgelo8mo ago
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
LolGamer
LolGamerOP8mo ago
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
Want results from more Discord servers?
Add your server