This commit is contained in:
DjDeveloperr 2021-04-15 18:23:26 +05:30
parent d0e3dc9fba
commit c3d1714a6e

View file

@ -101,6 +101,17 @@ export function init(options: DeploySlashInitOptions): void {
* }) * })
* ``` * ```
* *
* Also supports Sub Command and Group handling out of the box!
* ```ts
* handle("command-name group-name sub-command", (i) => {
* // ...
* })
*
* handle("command-name sub-command", (i) => {
* // ...
* })
* ```
*
* @param cmd Command to handle. Either Handler object or command name followed by handler function in next parameter. * @param cmd Command to handle. Either Handler object or command name followed by handler function in next parameter.
* @param handler Handler function (required if previous argument was command name) * @param handler Handler function (required if previous argument was command name)
*/ */