fix(aurora): fixed /history not showing roles correctly

This commit is contained in:
Seaswimmer 2024-02-02 12:16:41 -05:00
parent ba5b128afc
commit 6be92f05db
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -1079,8 +1079,8 @@ class Aurora(commands.Cog):
f"\n**Timestamp:** <t:{case['timestamp']}> | <t:{case['timestamp']}:R>"
)
if case["role_id"] != 0:
role = interaction.guild.get_role(case["role_id"])
if case["role_id"] != "0":
role = interaction.guild.get_role(int(case["role_id"]))
if role is not None:
field_value += f"\n**Role:** {role.mention}"
else: