Skip to content

Commit

Permalink
Disable join command while bug persists
Browse files Browse the repository at this point in the history
  • Loading branch information
kmgb committed Oct 21, 2022
1 parent e12908e commit 50b0006
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ def __init__(self, bot):
self.bot = bot
self.queue = []

@commands.command()
async def join(self, ctx, *, channel: discord.VoiceChannel = None):
"""Joins a voice channel -- the one you're in, or the one you specify"""

if ctx.voice_client is not None:
return await ctx.voice_client.move_to(channel)

if channel is None:
if ctx.author.voice:
await ctx.author.voice.channel.connect()
else:
await ctx.send("You are not connected to a voice channel.")
raise commands.CommandError("Author not connected to a voice channel.")

else:
await channel.connect()
# @commands.command()
# async def join(self, ctx, *, channel: discord.VoiceChannel = None):
# """Joins a voice channel -- the one you're in, or the one you specify"""

# if ctx.voice_client is not None:
# return await ctx.voice_client.move_to(channel)

# if channel is None:
# if ctx.author.voice:
# await ctx.author.voice.channel.connect()
# else:
# await ctx.send("You are not connected to a voice channel.")
# raise commands.CommandError("Author not connected to a voice channel.")

# else:
# await channel.connect()

@commands.command()
async def play(self, ctx, *, url):
Expand Down

0 comments on commit 50b0006

Please sign in to comment.