Set channel permissions
set_channel_permissionsSet or replace permission overwrites for a role or member on a Discord channel to control access, such as denying @everyone view and allowing specific roles.
Instructions
Set the permission overwrite for a role or member on a channel. REPLACES any existing overwrite for that target on that channel. The standard private-channel pattern: deny VIEW_CHANNEL for the guild's @everyone role (target_id = guild id, target_type = role) and allow VIEW_CHANNEL for the roles that should see it.
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_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | ||
| allow | No | ||
| target_id | Yes | Role id or member id. The @everyone role id equals the guild id. | |
| channel_id | Yes | ||
| target_type | Yes |