From ce5417602f91fdc01f32182ab4e8316d21b23cbf Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:01:41 +0200 Subject: [PATCH] [3.4] Use `usage` attr to remove appended underscore for `from_` parameter in `[p]reorderpath` (#5946) (#6044) Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com> --- docs/cog_guides/cog_manager_ui.rst | 4 ++-- redbot/core/cog_manager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cog_guides/cog_manager_ui.rst b/docs/cog_guides/cog_manager_ui.rst index 7c9cf73cb..f80a9b8b3 100644 --- a/docs/cog_guides/cog_manager_ui.rst +++ b/docs/cog_guides/cog_manager_ui.rst @@ -193,7 +193,7 @@ reorderpath .. code-block:: none - [p]reorderpath + [p]reorderpath **Description** @@ -221,7 +221,7 @@ have to put the 3rd path higher than the 2nd path, let's swap them! Type **Arguments** -* ````: The index of the path you want to move. +* ````: The index of the path you want to move. * ````: The location where you want to insert the path. .. _cogmanagerui-command-installpath: diff --git a/redbot/core/cog_manager.py b/redbot/core/cog_manager.py index bc1ff151c..863046f53 100644 --- a/redbot/core/cog_manager.py +++ b/redbot/core/cog_manager.py @@ -379,7 +379,7 @@ class CogManagerUI(commands.Cog): await ctx.bot._cog_mgr.remove_path(to_remove) await ctx.send(_("Path successfully removed.")) - @commands.command() + @commands.command(usage=" ") @checks.is_owner() async def reorderpath(self, ctx: commands.Context, from_: int, to: int): """