CommandsRouter
CommandsRouter
new CommandsRouter(options)
| Parameter | Type | Optional |
|---|---|---|
| options | CommandsRouterOptions | ❌ |
Methods
public clear(): void
public getData(): {
commands | : Collection<string | Command>; middlewares | : Collection<string | Middleware>; }
public isValidPath(): boolean
public populate(data): void
| Parameter | Type | Optional |
|---|---|---|
| data | ParsedCommandData | ❌ |
public scan(): Promise<{
commands | : { | } | ; middlewares | : { | } | ; }>
public toJSON(): {
commands | : { | } | ; middlewares | : { | } | ; }