Skip to main content

Interface: ConfirmOptions

Defined in: structures/Conversation.ts:30

Options for Conversation.confirm.

Extends​

Properties​

invalidMessage?​

optional invalidMessage?: string

Defined in: structures/Conversation.ts:38

Message sent when the answer isn't recognized.


no?​

optional no?: string[]

Defined in: structures/Conversation.ts:34

Accepted negative answers. Defaults cover English + Spanish + πŸ‘Ž/❌.


retries?​

optional retries?: number

Defined in: structures/Conversation.ts:36

How many times to re-ask on an unrecognized answer. Defaults to 1.


signal?​

optional signal?: AbortSignal

Defined in: structures/Conversation.ts:26

Abort the wait.

Inherited from​

AskOptions.signal


timeoutMs?​

optional timeoutMs?: number

Defined in: structures/Conversation.ts:24

Reject if no reply arrives within this many milliseconds.

Inherited from​

AskOptions.timeoutMs


yes?​

optional yes?: string[]

Defined in: structures/Conversation.ts:32

Accepted affirmative answers. Defaults cover English + Spanish + πŸ‘/βœ….