Editing an ephemeral reply from an interaction handler

How can I edit an ephemeral reply from an interaction handler? Say that I have ping.js with an embed and a button in an ephemeral message, I want to be able to click that button and then edit the original ephemeral message from pinghandler.js.
Solution:
Read about button interactions and their methods interaction.update in particular.
Jump to solution
4 Replies
qvgk
qvgkOP13mo ago
what main question I'm asking is how to edit an ephemeral message from another file I've tried fetching it by the fetched reply's ID which works, although then you can't update/edit the ephemeral message
Solution
WhacK
WhacK13mo ago
Read about button interactions and their methods interaction.update in particular.
qvgk
qvgkOP13mo ago
ABSOLUTE LIFE SAVER
Want results from more Discord servers?
Add your server