Members
Methods
# async find(context) → {Promise.<Command>}
поиск команды
Parameters:
Name | Type | Description |
---|---|---|
context |
IContext
|
Promise.<Command>
Example
ts
import { MessageContext } from "vk-io";
const command = commander.find<MessageContext>(context)
# async loadFromDirectory(dir) → {Promise.<void>}
загрузка команд из директории
Parameters:
Name | Type | Description |
---|---|---|
dir |
string
|
директория загрузки команд |
Promise.<void>