fix(aurora): fixed two pydantic validation errors
Signed-off-by: cswimr <seaswimmerthefsh@gmail.com>
This commit is contained in:
parent
24005800fa
commit
73d3449894
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ async def case_factory(interaction: Interaction, moderation: Moderation) -> Embe
|
||||||
if moderation.resolved:
|
if moderation.resolved:
|
||||||
resolved_user = await moderation.get_resolved_by()
|
resolved_user = await moderation.get_resolved_by()
|
||||||
if not resolved_user:
|
if not resolved_user:
|
||||||
resolved_user = PartialUser(id=0, name="Deleted User", discriminator="0")
|
resolved_user = PartialUser(bot=interaction.client, id=0, username="Deleted User", discriminator="0")
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Resolve Reason",
|
name="Resolve Reason",
|
||||||
value=f"Resolved by `{resolved_user.name or 'Deleted User'}` ({resolved_user.id or '0'}) for:\n{box(moderation.resolve_reason)}",
|
value=f"Resolved by `{resolved_user.name or 'Deleted User'}` ({resolved_user.id or '0'}) for:\n{box(moderation.resolve_reason)}",
|
||||||
|
|
Loading…
Reference in a new issue