Skip to main content

Function: parseConfirmation()

parseConfirmation(text, options?): boolean | undefined

Defined in: util/confirmation.ts:52

Interprets a reply as affirmative (true), negative (false) or unrecognized (undefined), matching against the accepted answer lists.

Parameters

text

string

options?

no?

string[]

yes?

string[]

Returns

boolean | undefined