Skip to content
Interfacegatewayv0.7.5

DefaultConfirmOptions

Options for the string-prompt form, adding the built-in Confirm/Cancel buttons' labels and style.

interface DefaultConfirmOptions extends ConfirmOptions

cancelLabel

Cancel-button label.

cancelLabel?: string

Default:'Cancel'

confirmLabel

Confirm-button label.

confirmLabel?: string

Default:'Confirm'

confirmStyle

Confirm-button style.

confirmStyle?: ButtonStyle

Default:Danger

ephemeral

Whether the prompt is ephemeral. Only the invoking user can act on it either way, a non-invoker's click is ignored.

ephemeral?: boolean

Inherited from:ConfirmOptions

Default:true

onCancel

Shown in place of the prompt when the user cancels. Absent removes the prompt.

onCancel?: Outcome

Inherited from:ConfirmOptions

onConfirm

Shown in place of the prompt when the user confirms. Absent removes the prompt.

onConfirm?: Outcome

Inherited from:ConfirmOptions

onTimeout

Shown in place of the prompt when the prompt times out. Absent removes the prompt.

onTimeout?: Outcome

Inherited from:ConfirmOptions

timeoutMs

Milliseconds to wait for a click before the prompt is settled and the result resolves to false.

timeoutMs?: number

Inherited from:ConfirmOptions

Default:30_000