forked from cswimr/SeaCogs
fix(aurora): cleaning up code more
This commit is contained in:
parent
4ca9760284
commit
efe16cefac
1 changed files with 1 additions and 8 deletions
|
@ -344,14 +344,7 @@ class Aurora(commands.Cog):
|
||||||
else:
|
else:
|
||||||
parsed_time = "NULL"
|
parsed_time = "NULL"
|
||||||
|
|
||||||
matching_role = None
|
if not role.id in addrole_whitelist:
|
||||||
|
|
||||||
for role_id in addrole_whitelist:
|
|
||||||
if role_id == role.id:
|
|
||||||
matching_role = role_id
|
|
||||||
break
|
|
||||||
|
|
||||||
if not matching_role:
|
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
content=error("That role isn't whitelisted!"), ephemeral=True
|
content=error("That role isn't whitelisted!"), ephemeral=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue