indexFunctions
Function: newCloseChoiceOption()
> newCloseChoiceOption(text, options?): CloseChoiceOptionInterface
Defined in: src/narration/classes/CloseChoiceOption.ts:24
In addition to newChoiceOption, you can use newCloseChoiceOption to create a closing option.
This closes the choice menu and continues with the steps, without calling any label.
Parameters
text
string | string[]
The text displayed in the choice menu.
options?
ChoiceMenuOptionCloseOptions
An object with the choice's options
Returns
Example
newCloseChoiceOption("Return")