Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 2.22 KB

File metadata and controls

76 lines (46 loc) · 2.22 KB

CommandLock

Lock command or cog usage to specific channels and redirect users to the correct ones.

[p]commandlock

Manage command and cog locks to specific channels.

  • Usage: [p]commandlock
  • Restricted to: ADMIN
  • Aliases: cmdlock
  • Checks: guild_only

[p]commandlock whitelistrole

Add/Remove whitelisted roles to bypass all command and cog locks.

  • Usage: [p]commandlock whitelistrole <role>

[p]commandlock lock

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

[p]commandlock toggelchannel

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

[p]commandlock view

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]

[p]commandlock deleteafter

Set a duration in seconds after the redirect message is deleted.

Set to 0 to never delete the messages.

  • Usage: [p]commandlock deleteafter <seconds>

[p]commandlock unlock

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