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
z4vmk
z4vmkOP2y 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
WhacK2y ago
Read about button interactions and their methods interaction.update in particular.
z4vmk
z4vmkOP2y ago
ABSOLUTE LIFE SAVER

Did you find this page helpful?