Compare commits

..

No commits in common. "a7dc1400c487256e3cc9138132f550e4fd1f0bdf" and "fb9ee7381d7482342d8dd4923672d7432ff79a81" have entirely different histories.

2 changed files with 6 additions and 6 deletions

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

View file

@ -16,7 +16,7 @@ def register_config(config_obj: Config):
history_pagesize = 5,
history_inline_pagesize = 6,
auto_evidenceformat = False,
addrole_roles = []
blacklist_roles = []
)
config_obj.register_user(
history_ephemeral = None,