fix(aurora): fixed a history call to Moderation.type
that was causing a TypeError
This commit is contained in:
parent
6d0d79c6c7
commit
9f747a77ca
1 changed files with 1 additions and 1 deletions
|
@ -1058,7 +1058,7 @@ class Aurora(commands.Cog):
|
||||||
})
|
})
|
||||||
moderator = memory_dict[str(mod.moderator_id)]
|
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})"
|
field_value = f"**Target:** `{target.name}` ({target.id})\n**Moderator:** `{moderator.name}` ({moderator.id})"
|
||||||
|
|
||||||
if len(str(mod.reason)) > 125:
|
if len(str(mod.reason)) > 125:
|
||||||
|
|
Loading…
Reference in a new issue