Updating an embed following interaction with a button

Hello, I have an embed with 2 buttons, a first which validates and a second which cancels. I would like for example that when I cancel, the buttons disappear to just leave the message of cancellation. Excluding the buttons remains present. I created a new embed, then I called this line of code to update my message: interaction.update({embeds: [Error]} but as said before, the embed changes, but I can't get the pimples to go away/
5 Replies
d.js toolkit
d.js toolkit•10mo 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!
Trojxn
Trojxn•10mo ago
are you trying to delete buttons on a button press?
Unknown User
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
🖤 • Nelson • 🖤
Oh I forgot there was a line of code for removing buttons ^^' sorry The best is to do a delet via a line of code, or to pass an empty array?
Unknown User
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View