new PermissionOverwrite(client, data)
- Description:
Creates the structure for a permission overwrite.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
client |
Client | The client instance. |
data |
Object | The raw permission overwrite data. |
Members
(readonly) allow :String
- Description:
The permissions for the overwrite.
- Source:
The permissions for the overwrite.
Type:
- String
(readonly) deny :String
- Description:
The denied permissions for the overwrite.
- Source:
The denied permissions for the overwrite.
Type:
- String
(readonly) id :String
- Description:
The ID of the overwrite.
- Source:
The ID of the overwrite.
Type:
- String
(readonly) type :String
- Description:
The type of the overwrite. 0 for role, 1 for member.
- Source:
The type of the overwrite. 0 for role, 1 for member.
Type:
- String
Methods
toJSON(format) → {Object}
- Description:
Returns the JSON representation of this structure.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
format |
Number | The format to return the data in. |
Returns:
- Type
- Object
toString()
- Source: