From 0b3425a658c69438b0d42a10757688a4b301b497 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Tue, 25 Feb 2025 17:42:17 -0500 Subject: [PATCH] fix(commands/voice/join): check message author voice channel before joining --- commands/voice/channel.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/voice/channel.py b/commands/voice/channel.py index c5bd107..4ef14f0 100644 --- a/commands/voice/channel.py +++ b/commands/voice/channel.py @@ -4,10 +4,11 @@ from .utils import command_allowed async def join(message): - if message.guild.voice_client: - return await message.guild.voice_client.move_to(message.channel) - elif message.author.voice: - await message.author.voice.channel.connect() + if message.author.voice: + if message.guild.voice_client: + await message.guild.voice_client.move_to(message.channel) + else: + await message.author.voice.channel.connect() else: await utils.reply(message, "you are not connected to a voice channel!") return