Lock channel
lock_channelDenies everyone permission to send messages and start threads in a Discord channel while keeping existing role and member posting permissions; optionally records an audit reason and can be reversed.
Instructions
Lock a channel by denying everyone the ability to send messages and start threads. Roles and members with their own permission to post on the channel keep it, so moderators set up that way keep access; the result names them. Reverse with unlock_channel, which puts back exactly what the lock changed.
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>"
},
"name": "lock_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No | The reason recorded in the server's audit log. | |
| channel | Yes | Channel name or ID. |