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

Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2023-04-20 00:09:32 +02:00
committed by GitHub
parent e51953bc42
commit 05ca09c47c
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

@@ -456,8 +456,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: