modify_channel_permissions
Set or update a channel permission overwrite for a role or member by specifying allowed and denied permissions, with an optional audit log reason.
Instructions
Set a permission overwrite on a channel for a role or member (type 0 = role, 1 = member). allow/deny accept names like ["SEND_MESSAGES"]. [PUT /channels/{channel_id}/permissions/{overwrite_id}]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>",
"overwrite_id": "<overwrite_id>",
"type": "<type>"
},
"name": "modify_channel_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | Denied permissions: bitfield string or names | |
| type | Yes | 0 = role, 1 = member | |
| allow | No | Allowed permissions: bitfield string or names | |
| reason | No | Reason (shown in the audit log) | |
| channel_id | Yes | Channel ID (text, voice, thread, forum or DM channel) | |
| overwrite_id | Yes | Role ID or user ID that the permission overwrite targets |