From ba5b128afcfcff9ffdbd8ebebf4e894ca72c4f8a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 12:09:45 -0500 Subject: [PATCH] fix(aurora): figuring out why I can't get a role from an id --- aurora/aurora.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 042a235..6d7f495 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -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"