From e1d84dfc4b2b268c7d59b9258466b4d36dc9f680 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 17 Dec 2023 13:02:46 -0500 Subject: [PATCH] fix(moderation): fixed messed up embeds --- moderation/embed_factory.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/moderation/embed_factory.py b/moderation/embed_factory.py index 1a402c1..b8866a7 100644 --- a/moderation/embed_factory.py +++ b/moderation/embed_factory.py @@ -60,9 +60,9 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact elif case_dict['target_type'] == 'CHANNEL': target_user = await fetch_channel_dict(interaction, case_dict['target_id']) if target_user['mention']: - target_name = f"{target_user['mention']} ({target_user['id']})" + target_name = f"{target_user['mention']}" else: - target_name = f"`{target_user['name']}` ({target_user['id']})" + target_name = f"`{target_user['name']}`" moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id']) moderator_name = f"`{moderator_user['name']}`" if moderator_user['discriminator'] == "0" else f"`{moderator_user['name']}#{moderator_user['discriminator']}`" @@ -127,9 +127,9 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact elif case_dict['target_type'] == 'CHANNEL': target_user = await fetch_channel_dict(interaction, case_dict['target_id']) if target_user['mention']: - target_name = f"{target_user['mention']} ({target_user['id']})" + target_name = f"{target_user['mention']}" else: - target_name = f"`{target_user['name']}` ({target_user['id']})" + 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']}" @@ -157,7 +157,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact if target_user['mention']: target_name = target_user['mention'] else: - target_name = target_user['name'] + 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']}"