diff options
| author | 2021-02-18 22:04:27 +0000 | |
|---|---|---|
| committer | 2021-02-18 22:04:27 +0000 | |
| commit | c7de5a2577b4f2975b3fab683f2d7459c5bda636 (patch) | |
| tree | 3be3659955961f5c56f7b8f01d2834f2c41770fb /bot/exts | |
| parent | Add root alias support for commands (diff) | |
Extend root aliases to support commands.Group
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/evergreen/pfp_modify.py | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/bot/exts/evergreen/pfp_modify.py b/bot/exts/evergreen/pfp_modify.py index a3f7e3f8..8a3eb77c 100644 --- a/bot/exts/evergreen/pfp_modify.py +++ b/bot/exts/evergreen/pfp_modify.py @@ -173,7 +173,7 @@ class PfpModify(commands.Cog):          await ctx.send(file=file, embed=embed) -    @pfp_modify.command(pass_context=True, aliases=["easterify"]) +    @pfp_modify.command(pass_context=True, aliases=["easterify"], root_aliases=("easterify", "avatareasterify"))      async def avatareasterify(self, ctx: commands.Context, *colours: t.Union[discord.Colour, str]) -> None:          """          This "Easterifies" the user's avatar. @@ -249,7 +249,11 @@ class PfpModify(commands.Cog):          await ctx.send(file=file, embed=embed) -    @pfp_modify.group(aliases=["avatarpride", "pridepfp", "prideprofile"], invoke_without_command=True) +    @pfp_modify.group( +        aliases=["avatarpride", "pridepfp", "prideprofile"], +        root_aliases=("prideavatar", "avatarpride", "pridepfp", "prideprofile"), +        invoke_without_command=True +    )      async def prideavatar(self, ctx: commands.Context, option: str = "lgbt", pixels: int = 64) -> None:          """          This surrounds an avatar with a border of a specified LGBT flag. @@ -310,6 +314,7 @@ class PfpModify(commands.Cog):      @pfp_modify.command(          name='savatar',          aliases=('spookyavatar', 'spookify'), +        root_aliases=('spookyavatar', 'spookify'),          brief='Spookify an user\'s avatar.'      )      async def spooky_avatar(self, ctx: commands.Context, user: discord.Member = None) -> None:  |