Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit 88a59ff

Browse files
author
parafoxia
committed
Hotfix - fix configuration error
1 parent 396023a commit 88a59ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solaris/utils/modules/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def system__adminrole(bot, channel, value):
8282
The role used to denote which members can configure Solaris. Alongside server administrators, only members with this role can use any of Solaris' configuration commands. Upon selecting a new channel, Solaris will delete the one that was created during the first time setup should it still exist."""
8383
if not isinstance(value, discord.Role):
8484
await channel.send(f"{bot.cross} The admin role must be a Discord role in this server.")
85-
elif any(v.name == "@everyone" for v in values):
85+
elif value.name == "@everyone":
8686
await channel.send(f"{bot.cross} The everyone role can not be used as the admin role.")
8787
elif value.position > channel.guild.me.top_role.position:
8888
await channel.send(
@@ -144,7 +144,7 @@ async def gateway__blockingrole(bot, channel, value):
144144
await channel.send(f"{bot.cross} This can not be done as the gateway module is currently active.")
145145
elif not isinstance(value, discord.Role):
146146
await channel.send(f"{bot.cross} The blocking role must be a Discord role in this server.")
147-
elif any(v.name == "@everyone" for v in values):
147+
elif value.name == "@everyone":
148148
await channel.send(f"{bot.cross} The everyone role can not be used as the blocking role.")
149149
elif value.position >= channel.guild.me.top_role.position:
150150
await channel.send(

0 commit comments

Comments
 (0)