Sync channel permissions
discord_
Write
- Toolset
- Channels
channels - Discord permissions
- Manage Channels and Manage Roles
- Context cost
- 208 tokens, estimated830 bytes of definition, divided by 4
Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions'). The channel must be inside a category. Requires the Manage Channels and Manage Roles permissions, and View Channel on the category: the tool refuses a category the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation.
Risk and annotations
Read-onlyreadOnlyHint | no | Can modify your server. |
|---|---|---|
DestructivedestructiveHint | no | Declared non-destructive. |
IdempotentidempotentHint | yes | Repeating the call with the same arguments has no additional effect. |
Open worldopenWorldHint | yes | Interacts with an external system: Discord. |
Annotations are hints the server declares. Clients use them to decide when to ask you before a call.
Parameters
| Parameter | Type | Rules | Description |
|---|---|---|---|
| channel_ | string | pattern ^\d{17,20}$ | ID (snowflake) of the channel to sync with its parent category. |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Also in Channels
-
Create channel, Write
discord_create_ channel -
Delete channel, Destructive
discord_delete_ channel -
Edit channel, Write
discord_edit_ channel -
Move channel, Write
discord_move_ channel -
Clone channel, Write
discord_clone_ channel -
Set channel position, Write
discord_set_ channel_ position -
Follow announcement channel, Write
discord_follow_ announcement_ channel
Raw definition (830 bytes)
{
"name": "discord_lock_channel_permissions",
"description": "Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions'). The channel must be inside a category. Requires the Manage Channels and Manage Roles permissions, and View Channel on the category: the tool refuses a category the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation.",
"inputSchema": {
"type": "object",
"properties": {
"channel_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID (snowflake) of the channel to sync with its parent category."
}
},
"required": [
"channel_id"
],
"additionalProperties": false
},
"annotations": {
"title": "Sync channel permissions",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}
}