Skip to content

Commit

Permalink
handle chair object
Browse files Browse the repository at this point in the history
  • Loading branch information
khanjason authored Nov 21, 2020
1 parent a79df7d commit 6f2cf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/Chair.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f2cf38

Please sign in to comment.