[CustomCom] Fix [p]cc cooldown docstring & docs (#5914)

This commit is contained in:
Flame442 2022-11-22 19:37:20 -05:00 committed by GitHub
parent ed4f36a529
commit 6c8b6eb71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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: