mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
[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:
@@ -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:
|
||||||
|
|||||||
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user