indexFunctions
Function: newChoiceOption()
> newChoiceOption<T>(text, label, props, options?): ChoiceOptionInterface
Defined in: src/narration/classes/ChoiceMenuOption.ts:24
Function to create a new choice menu option.
Type Parameters
T
T extends StorageObjectType
Parameters
text
string | string[]
label
string | Label<T> | LabelAbstract<any, T, number>
props
T
options?
ChoiceMenuOptionOptions
Returns
Example
newChoiceOption("Hello", HelloLabel, {})