fix(aurora): fixed the addrole embed generator having an outdated config variable name

This commit is contained in:
Seaswimmer 2024-01-16 13:04:44 +00:00
parent d8def3cfc8
commit 4788f3189c
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -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)