Use usage attr to remove appended underscore for from_ parameter in [p]reorderpath (#5946)

This commit is contained in:
Kreusada 2022-12-30 22:28:44 +00:00 committed by GitHub
parent 82e92a8dc3
commit b98156c589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -412,7 +412,7 @@ class CogManagerUI(commands.Cog):
for page in pagify("\n\n".join(parts), ["\n", " "]): for page in pagify("\n\n".join(parts), ["\n", " "]):
await ctx.send(page) await ctx.send(page)
@commands.command() @commands.command(usage="<from> <to>")
@checks.is_owner() @checks.is_owner()
async def reorderpath(self, ctx: commands.Context, from_: positive_int, to: positive_int): async def reorderpath(self, ctx: commands.Context, from_: positive_int, to: positive_int):
""" """