Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Args

Hierarchy

  • Args

Index

Constructors

constructor

  • new Args(data: APIMessage, command: Command, parser: Args): Args

Properties

Readonly command

command: Command

Readonly data

data: APIMessage

Private Readonly parser

parser: Args

Private states

states: ArgsState[] = []

Methods

getFlags

  • getFlags(...keys: readonly string[]): boolean

getOption

  • getOption(...keys: readonly string[]): null | string

getOptions

  • getOptions(...keys: readonly string[]): null | string[]

pick

pickResult

repeat

repeatResult

Private resolveArgument

rest

restResult

restore

  • restore(): void

save

  • save(): void

start

Static error

Static make

  • make<T>(cb: IArgument<T>["run"], name?: string): IArgument<T>

Generated using TypeDoc