mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
Fix parameter error introduced before
This commit is contained in:
parent
801af41bda
commit
d0e0070f19
2 changed files with 3 additions and 3 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue