upsert_role_channel_permissions
Create or update a Discord channel permission overwrite for a role, setting allowed and denied permissions by ID or CSV.
Instructions
Create or update channel permission overwrite for a role
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": {
"channelId": "<channelId>",
"roleId": "<roleId>"
},
"name": "upsert_role_channel_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Audit log reason | |
| roleId | Yes | Role ID | |
| denyRaw | No | Denied permissions raw bitfield string | |
| allowRaw | No | Allowed permissions raw bitfield string | |
| channelId | Yes | Channel ID | |
| denyPermissions | No | CSV of denied permission names | |
| allowPermissions | No | CSV of allowed permission names (e.g. ViewChannel,SendMessages) |