Option
Option<
T,R,V> =object
Defined in: utils/option.ts:53
Type Parameters
Section titled “Type Parameters”T extends keyof OptionValue = keyof OptionValue
R extends boolean = boolean
V = OptionValue[T]
Properties
Section titled “Properties”autocomplete?
Section titled “autocomplete?”
optionalautocomplete?: (c) =>Suggestion<V>[] |Promise<Suggestion<V>[]>
Defined in: utils/option.ts:68
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Suggestion<V>[] | Promise<Suggestion<V>[]>
channelTypes?
Section titled “channelTypes?”
optionalchannelTypes?:ChannelType[]
Defined in: utils/option.ts:66
choices?
Section titled “choices?”
optionalchoices?:Record<string,V>
Defined in: utils/option.ts:61
description
Section titled “description”description:
string
Defined in: utils/option.ts:59
locales?
Section titled “locales?”
optionallocales?:Locales
Defined in: utils/option.ts:67
optionalmax?:number
Defined in: utils/option.ts:63
maxLength?
Section titled “maxLength?”
optionalmaxLength?:number
Defined in: utils/option.ts:65
optionalmin?:number
Defined in: utils/option.ts:62
minLength?
Section titled “minLength?”
optionalminLength?:number
Defined in: utils/option.ts:64
required
Section titled “required”required:
R
Defined in: utils/option.ts:60
type:
T
Defined in: utils/option.ts:58