Skip to content

Commit

Permalink
test removed, voice channel check
Browse files Browse the repository at this point in the history
  • Loading branch information
khanjason authored Nov 21, 2020
1 parent 1bf304e commit 76b63da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/Chair.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ async def startSession(self, ctx):
else:
await connected.channel.connect()
await ctx.channel.send("Session has started!")
else:
embedVar = discord.Embed(title="Error", description="Please join a voice channel.", color=discord.Color.from_rgb(78,134,219))
await ctx.send(embed=embedVar)
@startSession.error
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 76b63da

Please sign in to comment.