Clear channel permissions
clear_channel_permissionsRemoves a role's or member's channel permission overwrite so access follows roles and other overwrites, with confirmation for sensitive removals.
Instructions
Remove a role's or member's permission overwrite from a channel, so their permissions there come from their roles and the other overwrites. On a category, Discord also makes the same change in every channel inside whose permissions match the category's exactly (synced), as the Discord app does; the result names them. To keep such a channel as it is, change that channel first, which stops it matching. get_channel_permissions says whether a channel is synced. Removing one that keeps someone out (a private channel's denial for @everyone, say) needs confirming, as does one whose removal gives moderator or admin powers (such as banning, kicking, or timing out members, deleting other people's messages, or managing the server, roles, or channels): the first call changes nothing and returns a preview and a confirm_token, and repeating the call with the token makes the change.
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": "clear_channel_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| target | Yes | Role or member name or ID. | |
| channel | Yes | Channel name or ID. | |
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |