Set channel permission
set_channel_permissionConfigure permission overwrites for a role or member on a channel, allowing, denying, or resetting specific permissions like ViewChannel and SendMessages.
Instructions
Allow or deny specific permissions for a role or member on one channel (a permission overwrite). Examples: deny "ViewChannel" for @everyone to make a channel private; allow "ViewChannel" and "SendMessages" for a Team role. This merges with any existing overwrite. Use reset to clear a permission back to inherited.
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": "<channel>",
"target": "<target>"
},
"name": "set_channel_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | Permissions to deny. | |
| allow | No | Permissions to allow, e.g. ["ViewChannel","SendMessages"]. | |
| reset | No | Permissions to clear back to inherited (neither allowed nor denied). | |
| reason | No | Reason recorded in the audit log. | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| target | Yes | Role or member to set permissions for (name, id, @mention, or @everyone). | |
| channel | Yes | Channel to change (name or id). May be a category. | |
| target_type | No | Disambiguate when a role and member share a name. Default: auto (role first). |