I have a command that sends an ephemeral message that only the recipient can see, this is their private inventory, in my economy bot. however, i have pagination setup for this command.
I NEED to delete the ephemeral message when i change pages so that i can send the next page also in ephemeral mode.
however, both interaction.message.delete and interaction.deleteoriginalresponse fail.
how can i delete the message which has the button on it, from within the button's callback if the message is ephemeral?
Thank you!