fix(aurora): fixed /history not showing roles correctly
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 16s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
Seaswimmer 2024-02-02 12:16:41 -05:00
parent ba5b128afc
commit 6be92f05db
Signed by: 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>" f"\n**Timestamp:** <t:{case['timestamp']}> | <t:{case['timestamp']}:R>"
) )
if case["role_id"] != 0: if case["role_id"] != "0":
role = interaction.guild.get_role(case["role_id"]) role = interaction.guild.get_role(int(case["role_id"]))
if role is not None: if role is not None:
field_value += f"\n**Role:** {role.mention}" field_value += f"\n**Role:** {role.mention}"
else: else: