From c8c4756cc396b62e0a5636e81b88123b2183f893 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Wed, 12 Feb 2025 11:55:44 -0500 Subject: [PATCH] fix(commands/voice/join): only join when author is in voice channel --- commands/voice/channel.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/commands/voice/channel.py b/commands/voice/channel.py index a158021..c5bd107 100644 --- a/commands/voice/channel.py +++ b/commands/voice/channel.py @@ -1,5 +1,3 @@ -import disnake - import utils from .utils import command_allowed @@ -10,8 +8,6 @@ async def join(message): return await message.guild.voice_client.move_to(message.channel) elif message.author.voice: await message.author.voice.channel.connect() - elif isinstance(message.channel, disnake.VoiceChannel): - await message.channel.connect() else: await utils.reply(message, "you are not connected to a voice channel!") return