fix(aurora): actually fixed the thing i just tried to fix
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 32s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 1m2s

Signed-off-by: cswimr <seaswimmerthefsh@gmail.com>
This commit is contained in:
Seaswimmer 2024-09-25 22:55:33 -04:00
parent d92a0d27da
commit 24005800fa
Signed by: CoastalCommitsManagement
GPG key ID: 7E73189F651A553F

View file

@ -230,6 +230,8 @@ 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:
resolved_user = PartialUser(id=0, name="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)}",