Aurora Configuration Rewrite #15

Merged
cswimr merged 73 commits from aurora-config-rewrite into main 2024-01-16 12:19:08 -05:00
Showing only changes of commit a7dc1400c4 - Show all commits

View file

@ -82,12 +82,12 @@ async def _addrole(guild: Guild) -> str:
"""Generates a configuration menu field value for a guild's addrole whitelist."""
whitelist = await config.guild(guild).addrole_roles()
if blacklist:
blacklist = [guild.get_role(role).mention or error(f"`{role}` (Not Found)") for role in whitelist]
blacklist = '\n'.join(blacklist)
if whitelist:
whitelist = [guild.get_role(role).mention or error(f"`{role}` (Not Found)") for role in whitelist]
whitelist = '\n'.join(whitelist)
else:
blacklist = warning("No roles are on the addrole whitelist!")
return blacklist
whitelist = warning("No roles are on the addrole whitelist!")
return whitelist
async def _immune(guild: Guild) -> str:
"""Generates a configuration menu field value for a guild's immune roles."""