From 5fa346bc754161c6b9b5dd1c3bd60f262c7ca863 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 15:20:26 -0500 Subject: [PATCH] fix(moderation): fixed formatting in some embed factory embeds --- moderation/embed_factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/embed_factory.py b/moderation/embed_factory.py index 9ed7e90..4890911 100644 --- a/moderation/embed_factory.py +++ b/moderation/embed_factory.py @@ -132,7 +132,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact target_name = f"`{target_user['name']}`" moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id']) - moderator_name = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}" + moderator_name = f"`{moderator_user['name']}`" if moderator_user['discriminator'] == "0" else f"`{moderator_user['name']}#{moderator_user['discriminator']}`" embed = Embed(title=f"📕 Case #{case_dict['moderation_id']:,} Resolved", color=color) @@ -160,7 +160,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact target_name = f"`{target_user['name']}`" moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id']) - moderator_name = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}" + moderator_name = f"`{moderator_user['name']}`" if moderator_user['discriminator'] == "0" else f"`{moderator_user['name']}#{moderator_user['discriminator']}`" embed = Embed(title=f"📕 Case #{case_dict['moderation_id']:,}", color=color) embed.description = f"**Type:** {str.title(case_dict['moderation_type'])}\n**Target:** {target_name} ({target_user['id']})\n**Moderator:** {moderator_name} ({moderator_user['id']})\n**Timestamp:** | "