diff options
| author | salmonik <raisersoft@proton.me> | 2025-09-20 11:46:18 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2025-09-20 11:46:18 +0200 |
| commit | 66948806dd3b8081271905c971ffaaa200af27e5 (patch) | |
| tree | a0f89d49a81a99ad85bd4449c3d34f5dfe47f426 /cogs/vclogs.py | |
| parent | added say command (diff) | |
| download | senator-sperma-66948806dd3b8081271905c971ffaaa200af27e5.tar.gz senator-sperma-66948806dd3b8081271905c971ffaaa200af27e5.zip | |
fixed vclogs.py
Diffstat (limited to '')
| -rw-r--r-- | cogs/vclogs.py | 2 |
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) |
