BasePermission
Base class for building custom permissions.
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new BasePermission()
Returns
Properties
Property | Modifier | Type | Description |
---|---|---|---|
value | abstract | string | The value or identifier of the custom permission returned in onPermissionsFallback . See Command. |
Methods
check()
Check if the user has the custom permission to run the command.
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TwitchContext <object , T > | The context of the command which was run. |
Returns
boolean
| Promise
<boolean
>
If the user has the custom permission to run the command.
Source
twitchfy/packages/chatbot/src/structures/BasePermission.ts:15