diff --git a/moderation/utilities/embed_factory.py b/moderation/utilities/embed_factory.py index 329bbb9..a99802e 100644 --- a/moderation/utilities/embed_factory.py +++ b/moderation/utilities/embed_factory.py @@ -126,16 +126,16 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact if embed_type == 'evidenceformat': if case_dict['target_type'] == 'USER': target_user = await fetch_user_dict(interaction, case_dict['target_id']) - target_name = {target_user['name']} if target_user['discriminator'] == "0" else f"{target_user['name']}#{target_user['discriminator']}" + target_name = target_user['name'] if target_user['discriminator'] == "0" else f"{target_user['name']}#{target_user['discriminator']}" elif case_dict['target_type'] == 'CHANNEL': target_user = await fetch_channel_dict(interaction, case_dict['target_id']) target_name = 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 = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}" - content = f"{codeblock}prolog\nCase: {case_dict['moderation_id']:,} ({str.title(case_dict['moderation_type'])})\n\nTarget: {target_name} ({target_user['id']})\nModerator: {moderator_name} ({moderator_user['id']})" + content = f"{codeblock}prolog\nCase: {case_dict['moderation_id']:,} ({str.title(case_dict['moderation_type'])})\nTarget: {target_name} ({target_user['id']})\nModerator: {moderator_name} ({moderator_user['id']})" if case_dict['duration'] != 'NULL': content += f"Duration: {humanize.precisedelta(td)}"