set_channel_permission
Configure channel permissions for roles or members in Discord servers by setting allow and deny rules to control access and actions.
Instructions
Set permission overwrite for a role or member on a channel
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": {
"guildId": "<guildId>",
"channelId": "<channelId>",
"targetId": "<targetId>",
"targetType": "<targetType>"
},
"name": "set_channel_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guildId | Yes | The ID of the server (guild) | |
| channelId | Yes | The ID of the channel | |
| targetId | Yes | The ID of the role or member | |
| targetType | Yes | Whether the target is a role or member | |
| allow | No | Array of permission names to allow | |
| deny | No | Array of permission names to deny | |
| reason | No | Reason for the change |