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