CommandArgument

class CommandArgument<TValue, TOptional>()

Configures one positional prefix-command argument.

exported from lib.weeble.d

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.