Delete Ephemeral Message through API Endpoint #3806
-
Description Why This is Needed |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
I'm not sure the point of this - ephemeral messages are already temporary and can be dismissed by the user. |
Beta Was this translation helpful? Give feedback.
-
Say you're running a command which uses buttons and ephemeral messages. In some cases you'll have multiple messages displayed, and editing the message takes up horizonal space, especially if the user is trying to perform other actions at the same time |
Beta Was this translation helpful? Give feedback.
-
It should be possible to at least fetch an ephemeral reply.
For a regular response you can instead use However, This will become relevant with future interactions that need to be linked to specific messages, such as buttons in ephemeral messages. The interaction payload includes the message, but without doing a dummy PATCH request to get an ID the two can't be correlated. |
Beta Was this translation helpful? Give feedback.
-
I would like to see this feature, too. Although a user could suppress it themselves when they no longer see the need for it, allowing the application more fine-grained control of the message history would help make for a cleaner UX in some scenarios. For instance, a simple ephemeral confirm/deny button dialog prompt could self-destruct once an answer is provided with no more interaction from the user. |
Beta Was this translation helpful? Give feedback.
-
Dropping my thoughts here as well: This is really important. I understand that these messages are not stored, but please give us
I have a use case where users click a button, and get an ephemeral messages like "Please check your DMs". Afterwards, I have a more complicated flow in DMs. But the timeout options seems to be most feasible as it's only an additional data point when sending ephemeral messages, and one call to set a js timeout in the client, so it might be an easy option for you guys to implement. |
Beta Was this translation helpful? Give feedback.
-
So my personal opinion as a user and bot dev is that ephemeral timeouts or deleting ephemeral messages isn't a great UX pattern to encourage. Timed messages are easy for a user to miss, and they aren't forgiving if a user takes a certain amount of time to read and comprehend a message (especially common if it isn't in their native language). Since ephemeral messages are unique to a user, we also lack tools to alert the user what happened to the disappearing message they had just been looking at - it won't show up in the Audit Log for instance. I don't think it's clear the bot deleted it in this case. I think y'all want this to fill a product gap we have rather than wanting the functionality itself, though? What I mean by that is I think if we built out alternative responses - something like a toast notification or Notification Center maybe - we wouldn't need this functionality as much? |
Beta Was this translation helpful? Give feedback.
-
I have multiple points about this topic:
Now keeping in mind there should be a way to also set auto deletion or not, sometimes you just want to display responses without any interaction of users, and then it's not timebound and users can close it themselves. |
Beta Was this translation helpful? Give feedback.
-
This limitation seems pretty arbitrary. One of our use cases for ephemeral messages is gathering user input then editing that ephemeral message over and over like a in-channel multi-step form. Then when they're done, the what is essentially a notification that they're done sticks around until they manually dismiss it. I can't imagine the people that have completed several such submissions would not think it's a chore to dismiss all the leftovers. For our use case a multi-step dynamic modal with some kind of notification at the end would work, but it looks like we're several steps away from that happening since modals are quite limited at this point. I quite like the timeout idea, maybe with the addition
|
Beta Was this translation helpful? Give feedback.
-
This feature was added in 2022: https://discord.com/developers/docs/change-log#delete-ephemeral-messages |
Beta Was this translation helpful? Give feedback.
This feature was added in 2022: https://discord.com/developers/docs/change-log#delete-ephemeral-messages