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 toolkit2y 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/luna2y ago
<interaction>.deferUpdate would work
MrMythical
MrMythical2y ago
Why don't you respond with an ephemeral success message
d.js docs
d.js docs2y ago
method SelectMenuInteraction#deferUpdate() Defers an update to the message to which the component was attached.
MrMythical
MrMythical2y ago
Like, "Successfully edited message."
kokastar
kokastarOP2y ago
I see that there was a feature called .update! Exactly what I was looking for. Thank you very much.
Want results from more Discord servers?
Add your server