Lock channel
lock_channelLock a Discord channel to prevent anyone from sending messages, while preserving moderator access through existing role overwrites.
Instructions
Lock a channel by denying everyone the ability to send messages. Existing role overwrites that allow posting still apply, so moderators keep access. Reverse with unlock_channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Channel name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No |