How can I edit interaction.update, because if I use interaction.editReply it edits followUp

How can I edit interaction.update, because if I use interaction.editReply it edits followUp
No description
7 Replies
d.js toolkit
d.js toolkit6mo 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!
TÆMBØ
TÆMBØ6mo ago
You want to pass message: "@original" as an option to editReply() to tell it to update the original message associated with the interaction - the message the button component resides on in this case
d.js docs
d.js docs6mo ago
:method: ButtonInteraction#editReply @14.15.2 Edits a reply to this interaction.
// Edit the initial reply to this interaction
interaction.editReply('New content')
.then(console.log)
.catch(console.error);
// Edit the initial reply to this interaction
interaction.editReply('New content')
.then(console.log)
.catch(console.error);
:propertysignature: InteractionEditReplyOptions#message @14.15.2 The response to edit
TÆMBØ
TÆMBØ6mo ago
Though that seems to be the default already. Are you able to show the code associated with editing the reply as well?
Joãozinho
JoãozinhoOP6mo ago
]
No description
Joãozinho
JoãozinhoOP6mo ago
await interaction.editReply({ components: [new ActionRowBuilder().addComponents(button2, button22)], message: interaction.message}) @TAEMBO.md It does not work sorry I was editing in the wrong place lol
TÆMBØ
TÆMBØ6mo ago
Why are you passing interaction.message to it? That's not what my suggestion was - remove that option entirely
Want results from more Discord servers?
Add your server