fix(aurora): fixed a history call to Moderation.type that was causing a TypeError
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Failing after 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s

This commit is contained in:
Seaswimmer 2024-07-06 13:16:53 -04:00
parent 6d0d79c6c7
commit 9f747a77ca
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -1058,7 +1058,7 @@ class Aurora(commands.Cog):
})
moderator = memory_dict[str(mod.moderator_id)]
field_name = f"Case #{mod.id:,} ({str.title(mod.type)})"
field_name = f"Case #{mod.id:,} ({mod.type.string.title()})"
field_value = f"**Target:** `{target.name}` ({target.id})\n**Moderator:** `{moderator.name}` ({moderator.id})"
if len(str(mod.reason)) > 125: