set_channel_permission
Sets a Discord channel permission override to allow or deny specific permissions for a role or member using allow and deny bitfields.
Instructions
Define override de permissão no canal. target_type: 0=cargo, 1=membro. allow/deny são bitfields.
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 | 0 | |
| allow | No | 0 | |
| reason | No | ||
| target_id | Yes | ||
| channel_id | Yes | ||
| target_type | Yes |