From 73d34498942692faeafb37377b97d553ea5cb67a Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 25 Sep 2024 22:57:57 -0400 Subject: [PATCH] fix(aurora): fixed two pydantic validation errors Signed-off-by: cswimr --- aurora/utilities/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/utilities/factory.py b/aurora/utilities/factory.py index fcb3f24..bc94f50 100644 --- a/aurora/utilities/factory.py +++ b/aurora/utilities/factory.py @@ -231,7 +231,7 @@ async def case_factory(interaction: Interaction, moderation: Moderation) -> Embe if moderation.resolved: resolved_user = await moderation.get_resolved_by() 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( name="Resolve Reason", value=f"Resolved by `{resolved_user.name or 'Deleted User'}` ({resolved_user.id or '0'}) for:\n{box(moderation.resolve_reason)}",