fix(aurora): fixing some formatting/color issues
This commit is contained in:
parent
826d76253d
commit
66600757da
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact
|
||||||
if case_dict['resolved'] == 1:
|
if case_dict['resolved'] == 1:
|
||||||
resolved_user = await fetch_user_dict(interaction, case_dict['resolved_by'])
|
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']}`"
|
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
|
return embed
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ async def log(interaction: Interaction, moderation_id: int, resolved: bool = Fal
|
||||||
case = await fetch_case(moderation_id, interaction.guild.id)
|
case = await fetch_case(moderation_id, interaction.guild.id)
|
||||||
if case:
|
if case:
|
||||||
embed = await embed_factory(
|
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:
|
try:
|
||||||
await logging_channel.send(embed=embed)
|
await logging_channel.send(embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue