Manages API methods for guild channel permission overwrites and stores their cache.
The data structure belonging to this manager.
Inherited from DataManagerCreates permission overwrites for a user or role in this channel, or replaces them if already present.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| userOrRole | RoleResolvable | UserResolvable | No | The user or role to update |
| options | PermissionOverwriteOptions | No | The options for the update |
| overwriteOptions | GuildChannelOverwriteOptions | Yes | The extra information for the update |
Deletes permission overwrites for a user or role in this channel.
| Name | Type | Optional | Description |
|---|---|---|---|
| userOrRole | RoleResolvable | UserResolvable | No | The user or role to delete |
| reason | string | Yes | The reason for deleting the overwrite |
Edits permission overwrites for a user or role in this channel, or creates an entry if not already present.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| userOrRole | RoleResolvable | UserResolvable | No | The user or role to update |
| options | PermissionOverwriteOptions | No | The options for the update |
| overwriteOptions | GuildChannelOverwriteOptions | Yes | The extra information for the update |
Resolves a data entry to a data Object.
Returns
An instance from this Manager| Name | Type | Optional | Description |
|---|---|---|---|
| idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
| Name | Type | Optional | Description |
|---|---|---|---|
| idOrInstance | Key | Holds | No | The id or instance of something in this Manager |
Replaces the permission overwrites in this channel.
Example
| Name | Type | Optional | Description |
|---|---|---|---|
| overwrites | readonly OverwriteResolvable[] | Collection<Snowflake, OverwriteResolvable> | No | Permission overwrites the channel gets updated with |
| reason | string | Yes | Reason for updating the channel overwrites |