set_channel_permission
Allow or deny permissions for a role or member on a Discord channel using permission names, and lock channels by denying SEND_MESSAGES for @everyone.
Instructions
Allow/deny permissions for a role or member on a channel using names (e.g. allow ["VIEW_CHANNEL"], deny ["SEND_MESSAGES"]). Lock a channel: deny SEND_MESSAGES for @everyone (role id = server 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>",
"target_id": "<target_id>",
"target_type": "<target_type>"
},
"name": "set_channel_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | ||
| allow | No | ||
| reason | No | ||
| target_id | Yes | Role ID (server ID = @everyone) or user ID | |
| channel_id | Yes | ||
| target_type | Yes |