Constructor
new PermissionOverwrite()
Properties:
| Name | Type | Description |
|---|---|---|
id |
String
|
The ID of the overwrite |
type |
Number
|
The type of the overwrite, either 1 for "member" or 0 for "role" |
- Source:
Extends
Methods
has(permission) → {Boolean}
Check if this permission allows a specific permission
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
permission |
String
|
BigInt
|
The name of the permission, or bit of permissions. A full list of permission nodes can be found on the docs reference page. Pass a BigInt if you want to check multiple permissions. |
Returns:
- Type:
-
Boolean
Whether the permission allows the specified permission