fix(aurora): cleaning up code more
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 13s

This commit is contained in:
Seaswimmer 2024-02-02 11:41:44 -05:00
parent 4ca9760284
commit efe16cefac
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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
)