SetCommand
1function SetCommand<T>(options: CommandOptions): <K>(target: K) => (...args: any[]) => __class<T, K> & KDefine the command.
Type parameters
| Type parameter | Value |
|---|---|
T extends EventSubConnection | EventSubConnection |
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CommandOptions | The options to build up the command. |
Returns
Function
The decorator function.
Type parameters
| Type parameter |
|---|
K extends (…args: any[]) => ChatCommand<T> |
Parameters
| Parameter | Type |
|---|---|
target | K |
Returns
(…args: any[]) => __class<T, K> & K