fix(aurora): fix /case breaking if a case is resolved but the resolving user doesn't exist anymore
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 3s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 55s

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

View file

@ -232,7 +232,7 @@ async def case_factory(interaction: Interaction, moderation: Moderation) -> Embe
resolved_user = await moderation.get_resolved_by() resolved_user = await moderation.get_resolved_by()
embed.add_field( embed.add_field(
name="Resolve Reason", name="Resolve Reason",
value=f"Resolved by `{resolved_user.name}` ({resolved_user.id}) 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)}",
inline=False, inline=False,
) )