From d0e0070f19b2facc118b941d3558485d3b20d7bd Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 18 Dec 2018 20:11:04 +0100 Subject: [PATCH] Fix parameter error introduced before --- src/pluralkit/bot/commands/system_commands.py | 2 +- src/pluralkit/bot/embeds.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pluralkit/bot/commands/system_commands.py b/src/pluralkit/bot/commands/system_commands.py index 8fe9f007..021bfef9 100644 --- a/src/pluralkit/bot/commands/system_commands.py +++ b/src/pluralkit/bot/commands/system_commands.py @@ -190,7 +190,7 @@ async def account_unlink(ctx: CommandContext): async def system_fronter(ctx: CommandContext, system: System): - embed = await embeds.front_status(await system.get_latest_switch(ctx.conn), ctx.conn) + embed = await embeds.front_status(ctx, await system.get_latest_switch(ctx.conn)) await ctx.reply(embed=embed) diff --git a/src/pluralkit/bot/embeds.py b/src/pluralkit/bot/embeds.py index eaba9ec4..7e77917a 100644 --- a/src/pluralkit/bot/embeds.py +++ b/src/pluralkit/bot/embeds.py @@ -172,10 +172,10 @@ async def member_card(conn, member: Member) -> discord.Embed: return card -async def front_status(ctx: "CommandContext", switch: Switch, conn) -> discord.Embed: +async def front_status(ctx: "CommandContext", switch: Switch) -> discord.Embed: if switch: embed = status("") - fronter_names = [member.name for member in await switch.fetch_members(conn)] + fronter_names = [member.name for member in await switch.fetch_members(ctx.conn)] if len(fronter_names) == 0: embed.add_field(name="Current fronter", value="(no fronter)")