BooleanOption
Represents a boolean option for a command.
Type parameters
Type parameter | Value |
---|---|
T extends boolean | null | null |
Constructors
new BooleanOption()
Create a new boolean option.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | OptionOptions <T > | The options for the boolean option. |
Returns
Source
twitchfy/packages/chatbot/src/structures/BooleanOption.ts:22
Properties
Property | Modifier | Type | Default value | Description |
---|---|---|---|---|
defaultValue | readonly | null | T | undefined | The default value of the option. |
type | readonly | "boolean" | 'boolean' | The type of the option. Set to boolean. |