From 6f2cf380f904cd7561ff36cfb389e361e90e26bf Mon Sep 17 00:00:00 2001 From: Jason Khan <43140671+khanjason@users.noreply.github.com> Date: Sat, 21 Nov 2020 21:40:34 +0000 Subject: [PATCH] handle chair object --- cogs/Chair.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/Chair.py b/cogs/Chair.py index 11f2fd0..78a065c 100644 --- a/cogs/Chair.py +++ b/cogs/Chair.py @@ -37,8 +37,8 @@ async def startSession(self, ctx): await connected.channel.connect() await ctx.channel.send("Session has started!") @startSession.error - async def startSession_error(ctx, error,k): - await ctx.channel.send(str(k)) + async def startSession_error(c,ctx, error): + await ctx.send(str(k)) if isinstance(error, commands.MissingRole): embedVar = discord.Embed(title="Error", description="The 'Chair' role is required to run this command.", color=discord.Color.from_rgb(78,134,219)) await ctx.send(embed=embedVar)