forked from cswimr/SeaCogs
fix(aurora): fixed UnboundLocalError in configuration.embed._addrole
This commit is contained in:
parent
656823611c
commit
a7dc1400c4
1 changed files with 5 additions and 5 deletions
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue