[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>
This commit is contained in:
Red-GitHubBot
2023-04-19 23:01:41 +02:00
committed by GitHub
parent 6f75c0f13f
commit ce5417602f
2 changed files with 3 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ reorderpath
.. code-block:: none .. code-block:: none
[p]reorderpath <from_> <to> [p]reorderpath <from> <to>
**Description** **Description**
@@ -221,7 +221,7 @@ have to put the 3rd path higher than the 2nd path, let's swap them! Type
**Arguments** **Arguments**
* ``<from_>``: The index of the path you want to move. * ``<from>``: The index of the path you want to move.
* ``<to>``: The location where you want to insert the path. * ``<to>``: The location where you want to insert the path.
.. _cogmanagerui-command-installpath: .. _cogmanagerui-command-installpath:

View File

@@ -379,7 +379,7 @@ class CogManagerUI(commands.Cog):
await ctx.bot._cog_mgr.remove_path(to_remove) await ctx.bot._cog_mgr.remove_path(to_remove)
await ctx.send(_("Path successfully removed.")) await ctx.send(_("Path successfully removed."))
@commands.command() @commands.command(usage="<from> <to>")
@checks.is_owner() @checks.is_owner()
async def reorderpath(self, ctx: commands.Context, from_: int, to: int): async def reorderpath(self, ctx: commands.Context, from_: int, to: int):
""" """