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