discord_set_role_permission
Set or update a role's per-channel permission overwrite by allowing or denying specific permissions. Merges with existing overwrite without resetting.
Instructions
Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions. Merges with the role's existing overwrite (does not reset it). Requires the Manage Roles permission. Use discord_set_member_permission to target a single member instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ID (snowflake) of the channel to set the overwrite on. | |
| role_id | Yes | ID (snowflake) of the role to grant/deny permissions for. | |
| allow | No | Permission flag names to allow, e.g. ['SendMessages','ViewChannel']. Uses Discord PermissionsBitField flag names. | |
| deny | No | Permission flag names to deny, e.g. ['SendMessages']. | |
| reason | No | Optional reason recorded in the server audit log. |