aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2025-09-20 11:46:18 +0200
committersalmonik <raisersoft@proton.me>2025-09-20 11:46:18 +0200
commit66948806dd3b8081271905c971ffaaa200af27e5 (patch)
treea0f89d49a81a99ad85bd4449c3d34f5dfe47f426
parentadded say command (diff)
downloadsenator-sperma-66948806dd3b8081271905c971ffaaa200af27e5.tar.gz
senator-sperma-66948806dd3b8081271905c971ffaaa200af27e5.zip
fixed vclogs.py
-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)