misc(moderation): added syntax highlighting to evidenceformat
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s

This commit is contained in:
Seaswimmer 2023-12-18 18:05:22 -05:00
parent e480399ab8
commit 7a6410b135
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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_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}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': if case_dict['duration'] != 'NULL':
content += f"**Duration:** {humanize.precisedelta(td)}" content += f"**Duration:** {humanize.precisedelta(td)}"