Skip to main content
Version: Next

CommandsRouter

CommandsRouter

new CommandsRouter(options)
ParameterTypeOptional
optionsCommandsRouterOptions

Methods

public clear(): void

public getData(): {

commands | : Collection<string | Command>; middlewares | : Collection<string | Middleware>; }

public isValidPath(): boolean

public populate(data): void

ParameterTypeOptional
dataParsedCommandData

public scan(): Promise<{

commands | : { | } | ; middlewares | : { | } | ; }>

public toJSON(): {

commands | : { | } | ; middlewares | : { | } | ; }