aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/vclogs.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cogs/vclogs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/vclogs.py b/cogs/vclogs.py
index 9e74877..01297a6 100644
--- a/cogs/vclogs.py
+++ b/cogs/vclogs.py
@@ -70,7 +70,7 @@ class VcLogs(commands.Cog):
70 70
71 # Connect to the voice channel if not already connected 71 # Connect to the voice channel if not already connected
72 voice_client = discord.utils.get(self.bot.voice_clients, guild=channel.guild) 72 voice_client = discord.utils.get(self.bot.voice_clients, guild=channel.guild)
73 if not voice_client or not voice_client.is_connected(): 73 if not isinstance(voice_client, discord.VoiceClient):
74 voice_client = await channel.connect() 74 voice_client = await channel.connect()
75 elif voice_client.channel != channel: 75 elif voice_client.channel != channel:
76 await voice_client.move_to(channel) 76 await voice_client.move_to(channel)