SetPermissions
1function SetPermissions<T>(...permission: PermissionOrArray<T>[]): <K>(target: K) => (...args: any[]) => __class<T, K> & KSet the permissions for the command.
Type parameters
| Type parameter | Value |
|---|---|
T extends EventSubConnection | EventSubConnection |
Parameters
| Parameter | Type | Description |
|---|---|---|
…permission | PermissionOrArray<T>[] | The permissions to set for 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
Source
twitchfy/packages/chatbot/src/decorators/SetPermissions.ts:10