mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[CustomCom] Fix [p]cc cooldown docstring & docs (#5914)
This commit is contained in:
parent
ed4f36a529
commit
6c8b6eb71c
@ -80,8 +80,8 @@ Examples:
|
||||
**Arguments:**
|
||||
|
||||
- ``<command>`` The custom command to check or set the cooldown.
|
||||
- ``<cooldown>`` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.
|
||||
- ``<per>`` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.
|
||||
- ``[cooldown]`` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.
|
||||
- ``[per]`` The group to apply the cooldown on. Defaults to per member. Valid choices are server / guild, user / member, and channel.
|
||||
|
||||
.. _customcommands-command-customcom-create:
|
||||
|
||||
|
||||
@ -454,8 +454,8 @@ class CustomCommands(commands.Cog):
|
||||
**Arguments:**
|
||||
|
||||
- `<command>` The custom command to check or set the cooldown.
|
||||
- `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.
|
||||
- `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.
|
||||
- `[cooldown]` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.
|
||||
- `[per]` The group to apply the cooldown on. Defaults to per member. Valid choices are server / guild, user / member, and channel.
|
||||
"""
|
||||
if cooldown is None:
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user