From efe16cefacd42140aaff7b6347f6506362f515dd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 11:41:44 -0500 Subject: [PATCH] fix(aurora): cleaning up code more --- aurora/aurora.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 66779d9..a34a12b 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -344,14 +344,7 @@ class Aurora(commands.Cog): else: parsed_time = "NULL" - matching_role = None - - for role_id in addrole_whitelist: - if role_id == role.id: - matching_role = role_id - break - - if not matching_role: + if not role.id in addrole_whitelist: await interaction.response.send_message( content=error("That role isn't whitelisted!"), ephemeral=True )