Skip to content

Interface: ICommandManager ​

Methods ​

getCommands() ​

getCommands(): string[]

Returns ​

string[]


handleCommand(message, enhanceMessage): Promise<void> ​

Parameters ​

`

| Name | Type | Description |

|------|------|-------------| | message | MessageModel | | | enhanceMessage | (msg) => void | |

Returns ​

Promise<void>


regusre(command, argsSchema, handler): void ​

Parameters ​

`

| Name | Type | Description |

|------|------|-------------| | command | string | | | argsSchema | CommandArgsSchema | | | handler | CommandHandler | |

Returns ​

void