forked from cswimr/SeaCogs
fix(aurora): figuring out why I can't get a role from an id
This commit is contained in:
parent
7d2b71667a
commit
ba5b128afc
1 changed files with 4 additions and 4 deletions
|
@ -375,7 +375,7 @@ class Aurora(commands.Cog):
|
|||
moderation_type=f"addrole",
|
||||
response=await interaction.original_response(),
|
||||
duration=parsed_time,
|
||||
role=role
|
||||
role=role,
|
||||
)
|
||||
await target.send(embed=embed)
|
||||
except discord.errors.HTTPException:
|
||||
|
@ -1081,10 +1081,10 @@ class Aurora(commands.Cog):
|
|||
|
||||
if case["role_id"] != 0:
|
||||
role = interaction.guild.get_role(case["role_id"])
|
||||
if not role:
|
||||
field_value += f"\n**Role:** Deleted Role ({case['role_id']})"
|
||||
else:
|
||||
if role is not None:
|
||||
field_value += f"\n**Role:** {role.mention}"
|
||||
else:
|
||||
field_value += f"\n**Role:** Deleted Role ({case['role_id']})"
|
||||
|
||||
if bool(case["resolved"]):
|
||||
field_value += "\n**Resolved:** True"
|
||||
|
|
Loading…
Reference in a new issue