From 67be1aa45a4916d28d5037150fc45f14c73e525b Mon Sep 17 00:00:00 2001 From: dkay Date: Tue, 18 Feb 2025 11:03:18 -0800 Subject: [PATCH 1/2] Update modmail aliases command Fixes #1104 --- techsupport_bot/commands/modmail.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index a162d253..3fa68105 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1385,11 +1385,11 @@ async def list_aliases(self: Self, ctx: commands.context) -> None: color=discord.Color.green(), description="There are no aliases registered for this guild", ) - + + embed = discord.Embed( + color=discord.Color.green(), title="Registered aliases for this guild:" + ) for alias in aliases: - embed = discord.Embed( - color=discord.Color.green(), title="Registered aliases for this guild:" - ) embed.add_field(name=f"{self.prefix}{alias}", value=aliases[alias]) await ctx.channel.send(embed=embed) From a7b60446d9ca65955885a4612f89c71b785982b9 Mon Sep 17 00:00:00 2001 From: dkay Date: Tue, 18 Feb 2025 11:08:12 -0800 Subject: [PATCH 2/2] FIx trailing whitespace --- techsupport_bot/commands/modmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 3fa68105..fbb11cf7 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1385,7 +1385,7 @@ async def list_aliases(self: Self, ctx: commands.context) -> None: color=discord.Color.green(), description="There are no aliases registered for this guild", ) - + embed = discord.Embed( color=discord.Color.green(), title="Registered aliases for this guild:" )