Locking Commands
The Discord bot provides commands to lock channels, restricting access to specific roles or the @everyone role. These commands are useful for controlling channel access during maintenance or moderation tasks. This page focuses specifically on commands used to lock channels.
Overview
Locking commands allow server administrators to restrict access to specific channels, either by applying a custom role, the @everyone role, or a preconfigured lock role. These commands are part of the bot’s channel management system and require the MANAGE_CHANNELS permission.
Locking Commands
The following commands are used to lock channels or configure locking behavior:
| Command/Subcommand | Description | Parameters |
|---|---|---|
/channel lock-other | Locks a specific channel using a selected role. | role (role, required): The role to lock the channel with.channel (channel, optional): The channel to lock (defaults to current channel). |
/channel lock-everyone | Locks a specific channel using the @everyone role. | channel (channel, optional): The channel to lock (defaults to current channel). |
/channel lock-role | Locks a specific channel using the preconfigured lock role. | channel (channel, optional): The channel to lock (defaults to current channel). |
| (Dashboard) Lock Role | Sets the role to be used for locking channels. | Configure on the Dashboard: https://lockieapp.ca |
Example
To lock a channel with a specific role:
/channel lock-other @Moderators #generalTo lock a channel for all users:
/channel lock-everyone #announcementsTo lock a channel using the preconfigured lock role:
/channel lock-role #updatesTo set a default lock role, open your server on the Dashboard and set the Lock Role.
Best Practices
- Configure the Lock Role: Set a lock role on the Dashboard for consistent locking across channels.
- Test Locking: Try locking a non-critical channel first to verify the role or
@everyonerestrictions work as expected. - Set a Logging Channel: Set your log channel on the Dashboard so staff can review lock actions.
- Communicate Restrictions: Inform users about locked channels to avoid confusion during maintenance or moderation.
For more details on related commands, including unlocking channels, see the Commands page.
