Interfacegatewayv0.2.1-next.0
interface DefaultConfirmOptions extends ConfirmOptionscancelLabel: string;Default:'Cancel'
confirmLabel: string;Default:'Confirm'
confirmStyle: ButtonStyle;Default:Danger
- optional
ephemeral
Whether the prompt is ephemeral. Only the invoking user can act on it either way, a non-invoker's click is ignored.
- optional
onCancel
Shown in place of the prompt when the user cancels. Absent removes the prompt.
onCancel: Outcome;Inherited from:ConfirmOptions
- optional
onConfirm
Shown in place of the prompt when the user confirms. Absent removes the prompt.
onConfirm: Outcome;Inherited from:ConfirmOptions
- optional
onTimeout
Shown in place of the prompt when the prompt times out. Absent removes the prompt.
onTimeout: Outcome;Inherited from:ConfirmOptions
- optional
timeoutMs
Milliseconds to wait for a click before the prompt is settled and the result resolves to false.