forked from cswimr/SeaCogs
fix(aurora): fixed /history not showing roles correctly
This commit is contained in:
parent
ba5b128afc
commit
6be92f05db
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue