CommandArgument
- class CommandArgument<TValue, TOptional>
Configures one positional prefix-command argument.
Type parameters
TValue
TOptional – (extends boolean)
Methods
-
CommandArgument.optional(defaultValue: TValue | null)
CommandArgument<TValue, true> Makes this argument optional and optionally supplies its omitted value.