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
7 Replies
- 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!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:method: ButtonInteraction#editReply
@14.15.2
Edits a reply to this interaction.
:propertysignature: InteractionEditReplyOptions#message @14.15.2
The response to editThough that seems to be the default already. Are you able to show the code associated with editing the reply as well?
]
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
Why are you passing
interaction.message
to it? That's not what my suggestion was - remove that option entirely