fix(aurora): fixing some formatting/color issues

This commit is contained in:
SeaswimmerTheFsh 2024-01-08 08:35:49 +00:00
parent 826d76253d
commit 66600757da
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)