From 1b08e58aa0cef59b470c0ba9fc5cfadc46fc897a Mon Sep 17 00:00:00 2001 From: Benjamyn Date: Thu, 27 Aug 2026 16:18:38 +1000 Subject: [PATCH] fix: rename command aliases to avoid collision - /edit-emoji now uses alias 'edit' only - /rename now uses alias 'rename-emoji' only - Fixes: 'The command rename is already an existing command or alias' error --- cogs/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index 9e1b47a..ca7102a 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -87,7 +87,7 @@ class AdminCog(Cog): except Exception as e: await ctx.send(f"Error deleting emoji: {e}") - @commands.command(name="edit-emoji", aliases=["rename", "edit"]) + @commands.command(name="edit-emoji", aliases=["edit"]) @commands.has_permissions(manage_emojis_and_stickers=True) async def edit_emoji(self, ctx: Context, *, name: str) -> None: """Edit an emoji's name or image.""" @@ -111,13 +111,13 @@ class AdminCog(Cog): await ctx.send(f"Emoji `{name}` not found.") return - await ctx.send(f"Emoji `{name}` found.\nUse `/rename` to change the name.") + await ctx.send(f"Emoji `{name}` found.\nUse `/delete` to delete it.") except discord.NotFound: await ctx.send(f"Emoji `{name}` not found.") except Exception as e: await ctx.send(f"Error: {e}") - @commands.command(name="rename", aliases=["edit"]) + @commands.command(name="rename", aliases=["rename-emoji"]) @commands.has_permissions(manage_emojis_and_stickers=True) async def rename(self, ctx: Context, *, name: str) -> None: """Rename an emoji."""