Enabling Maintenance Mode
The Discord bot’s Maintenance Mode feature allows server administrators to enable a restricted state for the server, limiting access to channels or features during maintenance. This page focuses on how to enable Maintenance Mode using specific bot commands.
Overview
Enabling Maintenance Mode activates restrictions on your server, such as locking channels to prevent user activity. This is typically used during server updates or configuration changes. The bot provides commands to enable Maintenance Mode server-wide or lock specific channels with designated roles.
Commands to Enable Maintenance Mode
The following commands, which require the MANAGE_CHANNELS permission, are used to enable Maintenance Mode or configure its behavior:
| Command/Subcommand | Description | Parameters |
|---|---|---|
/maintenance-enable | Enables Maintenance Mode, applying restrictions server-wide. | None |
/channel lock-other | Locks a specific channel using a selected role when enabling Maintenance Mode. | 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 when enabling Maintenance Mode. | channel (channel, optional): The channel to lock (defaults to current channel). |
/channel lock-role | Locks a specific channel using the preconfigured lock role when enabling Maintenance Mode. | channel (channel, optional): The channel to lock (defaults to current channel). |
| (Dashboard) Lock Role | Sets the role used when Maintenance Mode or channel locking is enabled. | Configure on the Dashboard: https://lockieapp.ca |
Example
To enable Maintenance Mode server-wide:
/maintenance-enableTo lock a specific channel with a custom role during maintenance:
/channel lock-other @MaintenanceRole #generalTo set the default lock role, open your server on the Dashboard and set the Lock Role in the server settings.
Best Practices
- Preconfigure the Lock Role: Set a lock role on the Dashboard before enabling Maintenance Mode to ensure consistent restrictions.
- Test Channel Locking: Try
/channel lock-otheror/channel lock-everyoneon a test channel to verify behavior before enabling server-wide. - Set a Logging Channel: Set your log channel on the Dashboard so staff can review maintenance actions.
- Announce Maintenance: Notify users before enabling Maintenance Mode to avoid confusion.
For more details on all Maintenance Mode commands, see the Commands page.
