Buttons: Confirmation Dialog #3720
Unanswered
ChrisTalman
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 2 replies
-
You could respond with an ephemeral message with buttons asking them to confirm. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are there any plans to allow a confirmation dialog to be specified for a button?
Use case
Buttons with destructive or significant consequences, like deleting something.
Current solution
Currently, another message could be sent with a confirmation button in it, but that requires more work, and involves an unnecessary interaction and network requests for what could be done entirely on the client.
Example
Conditionality
Some use cases might only require a confirmation dialog to be shown some of the time.
For them, a new interaction response type could indicate that a confirmation dialog should be displayed to the user. If the user confirms, a new interaction type could be dispatched, containing the original interaction data within it.
Beta Was this translation helpful? Give feedback.
All reactions