From 7a6410b135539538c4a6470bff20f6756e363170 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 18:05:22 -0500 Subject: [PATCH] misc(moderation): added syntax highlighting to evidenceformat --- moderation/utilities/embed_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/utilities/embed_factory.py b/moderation/utilities/embed_factory.py index 3b3f755..de795cd 100644 --- a/moderation/utilities/embed_factory.py +++ b/moderation/utilities/embed_factory.py @@ -135,7 +135,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact 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']}" - content = f"{codeblock}Case #{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'])})\n\nTarget: {target_name} ({target_user['id']})\nModerator: {moderator_name} ({moderator_user['id']})" if case_dict['duration'] != 'NULL': content += f"**Duration:** {humanize.precisedelta(td)}"