How to Respond to the interaction without displaying anything

I have created a function to edit the message according to the StringSelectMenu selection. However, the message "This interaction failed" is displayed even if the message is successfully edited. Is there any way to respond to the interaction without displaying anything?
6 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
treble/luna
treble/luna12mo ago
<interaction>.deferUpdate would work
MrMythical
MrMythical12mo ago
Why don't you respond with an ephemeral success message
d.js docs
d.js docs12mo ago
method SelectMenuInteraction#deferUpdate() Defers an update to the message to which the component was attached.
MrMythical
MrMythical12mo ago
Like, "Successfully edited message."
kokastar
kokastar12mo ago
I see that there was a feature called .update! Exactly what I was looking for. Thank you very much.