Lock command or cog usage to specific channels and redirect users to the correct ones.
Manage command and cog locks to specific channels.
- Usage:
[p]commandlock - Restricted to:
ADMIN - Aliases:
cmdlock - Checks:
guild_only
Add/Remove whitelisted roles to bypass all command and cog locks.
- Usage:
[p]commandlock whitelistrole <role>
Add a lock to a cog or command to restrict its usage to the specified channels.
Notes:
- Bot owners, server owners, and admins are immune to command locks.
- Whitelisted roles bypass all command and cog locks.
- Command locks take precedence over cog locks.
- Channels can be categories, in which case all channels within that category are included.
Examples:
[p]commandlock lock #allowed-channel MyCog
[p]commandlock lock channel_id channel_id_2 MyCommand
[p]commandlock lock #channel1 #channel2 MyCog
- Usage:
[p]commandlock lock <allowed_channels> <cog_or_command> - Aliases:
set and add
Toggle a channel for an existing cog or command lock.
This quickly adds or removes a channel from the lock configuration.
Example:
[p]commandlock toggle #channel MyCog
[p]cmdlock toggle #channel mycommand
- Usage:
[p]commandlock toggelchannel <channel> <cog_or_command> - Aliases:
toggle
View the current lock settings for a cog or command.
If no cog or command is specified, shows all locks for the server.
If a cog is specified, shows the useable channels for that cog including individual command locks.
If a command is specified, shows the useable channels for that command.
- Usage:
[p]commandlock view [cog_or_command=None]
Set a duration in seconds after the redirect message is deleted.
Set to 0 to never delete the messages.
- Usage:
[p]commandlock deleteafter <seconds>
Remove a lock from a cog or command, allowing it to be used in any channel.
- Usage:
[p]commandlock unlock <cog_or_command> - Aliases:
remove, rem, and del