Skip to content

Commit f0e14b0

Browse files
authored
Fix modmail alias command when no aliases defined (#1287)
* Fix modmail alias command when no aliases defined * Make modmail no alias use prepare_deny_embed
1 parent d7b1955 commit f0e14b0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

techsupport_bot/commands/modmail.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,11 +1375,13 @@ async def list_aliases(self: Self, ctx: commands.context) -> None:
13751375
# Checks if the command was an alias
13761376
aliases = config.extensions.modmail.aliases.value
13771377
if not aliases:
1378-
embed = auxiliary.generate_basic_embed(
1379-
color=discord.Color.green(),
1380-
description="There are no aliases registered for this guild",
1378+
embed = auxiliary.prepare_deny_embed(
1379+
message="There are no aliases registered for this guild",
13811380
)
13821381

1382+
await ctx.channel.send(embed=embed)
1383+
return
1384+
13831385
embed = discord.Embed(
13841386
color=discord.Color.green(), title="Registered aliases for this guild:"
13851387
)

0 commit comments

Comments
 (0)