From 66600757daa0205c8630abbea12759567c48b227 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 8 Jan 2024 08:35:49 +0000 Subject: [PATCH] fix(aurora): fixing some formatting/color issues --- aurora/utilities/embed_factory.py | 2 +- aurora/utilities/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/utilities/embed_factory.py b/aurora/utilities/embed_factory.py index 61b0f21..899f2c3 100644 --- a/aurora/utilities/embed_factory.py +++ b/aurora/utilities/embed_factory.py @@ -102,7 +102,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact if case_dict['resolved'] == 1: resolved_user = await fetch_user_dict(interaction, case_dict['resolved_by']) resolved_name = f"`{resolved_user['name']}`" if resolved_user['discriminator'] == "0" else f"`{resolved_user['name']}#{resolved_user['discriminator']}`" - embed.add_field(name='Resolve Reason', value=f"Resolved by {resolved_name} ({resolved_user['id']}) for:\n{box}{case_dict['resolve_reason']}", inline=False) + embed.add_field(name='Resolve Reason', value=f"Resolved by {resolved_name} ({resolved_user['id']}) for:\n{box(case_dict['resolve_reason'])}", inline=False) return embed diff --git a/aurora/utilities/utils.py b/aurora/utilities/utils.py index ed2de3c..dcd374e 100644 --- a/aurora/utilities/utils.py +++ b/aurora/utilities/utils.py @@ -202,7 +202,7 @@ async def log(interaction: Interaction, moderation_id: int, resolved: bool = Fal case = await fetch_case(moderation_id, interaction.guild.id) if case: embed = await embed_factory( - "log", await interaction.client.get_embed_color(None), interaction=interaction, case_dict=case, resolved=resolved + "log", await interaction.client.get_embed_color(interaction.channel), interaction=interaction, case_dict=case, resolved=resolved ) try: await logging_channel.send(embed=embed)