Its not possible to reuse / edit the same reply over and over again?

I reply to an initial Chatinput command with Ephemeral reply including an actionrow with interactive components. After interactions with these i want to edit the reply which is working fine but i then there will be an error because im not doing a new reply. Is there a way to avoid this ?
8 Replies
d.js toolkit
d.js toolkit4w 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! - Marked as resolved by OP
treble/luna
treble/luna4w ago
you can use editReply up until 15 minutes after the interaction
Krauti
KrautiOP4w ago
Yes i do, and like i said the content of the reply gets changed (i replace a stringselectMenu with some buttons) and then in the first button there are these animated dots (and disabled) and after a while theres this error "this interaction failed"
treble/luna
treble/luna4w ago
then you arent replying anymore /updating
Krauti
KrautiOP4w ago
Yeah i would like avoid a new reply thats what this is about
treble/luna
treble/luna4w ago
then just update
d.js docs
d.js docs4w ago
:method: ButtonInteraction#update() [email protected] Updates the original message of the component on which the interaction was received on.
// Remove the components from the message
interaction.update({
content: "A component interaction was received",
components: []
})
.then(console.log)
.catch(console.error);
// Remove the components from the message
interaction.update({
content: "A component interaction was received",
components: []
})
.then(console.log)
.catch(console.error);
Krauti
KrautiOP4w ago
this works i alway thought i had to update the previous interaction, passing it along in my handler callback overengineerd that stuff lol Thanks @treble/luna

Did you find this page helpful?