forked from cswimr/SeaCogs
fix(aurora): fixed the addrole embed generator having an outdated config variable name
This commit is contained in:
parent
d8def3cfc8
commit
4788f3189c
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ async def guild(ctx: commands.Context) -> Embed:
|
|||
async def addrole(ctx: commands.Context) -> Embed:
|
||||
"""Generates a configuration menu field value for a guild's addrole whitelist."""
|
||||
|
||||
whitelist = await config.guild(ctx.guild).addrole_roles()
|
||||
whitelist = await config.guild(ctx.guild).addrole_whitelist()
|
||||
if whitelist:
|
||||
whitelist = [ctx.guild.get_role(role).mention or error(f"`{role}` (Not Found)") for role in whitelist]
|
||||
whitelist = '\n'.join(whitelist)
|
||||
|
|
Loading…
Reference in a new issue