x
This commit is contained in:
parent
d0e3dc9fba
commit
c3d1714a6e
1 changed files with 11 additions and 0 deletions
11
deploy.ts
11
deploy.ts
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue