From 05ca09c47cad843caf1abbd6b1ec58dd376d3754 Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Thu, 20 Apr 2023 00:09:32 +0200 Subject: [PATCH] [3.4] [CustomCom] Fix [p]cc cooldown docstring & docs (#5914) (#6064) Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com> --- docs/cog_guides/customcommands.rst | 4 ++-- redbot/cogs/customcom/customcom.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cog_guides/customcommands.rst b/docs/cog_guides/customcommands.rst index 1a947702e..75df38ff6 100644 --- a/docs/cog_guides/customcommands.rst +++ b/docs/cog_guides/customcommands.rst @@ -80,8 +80,8 @@ Examples: **Arguments:** - ```` The custom command to check or set the cooldown. -- ```` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings. -- ```` 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: diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index e77021fd9..ded7b7661 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -456,8 +456,8 @@ class CustomCommands(commands.Cog): **Arguments:** - `` The custom command to check or set the cooldown. - - `` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings. - - `` 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: