Compare commits
2 commits
fb9ee7381d
...
a7dc1400c4
Author | SHA1 | Date | |
---|---|---|---|
a7dc1400c4 | |||
656823611c |
2 changed files with 6 additions and 6 deletions
|
@ -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."""
|
||||||
|
|
|
@ -16,7 +16,7 @@ def register_config(config_obj: Config):
|
||||||
history_pagesize = 5,
|
history_pagesize = 5,
|
||||||
history_inline_pagesize = 6,
|
history_inline_pagesize = 6,
|
||||||
auto_evidenceformat = False,
|
auto_evidenceformat = False,
|
||||||
blacklist_roles = []
|
addrole_roles = []
|
||||||
)
|
)
|
||||||
config_obj.register_user(
|
config_obj.register_user(
|
||||||
history_ephemeral = None,
|
history_ephemeral = None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue