fix(commands/voice/join): check message author voice channel before joining

This commit is contained in:
Ryan 2025-02-25 17:42:17 -05:00
parent e7105f1828
commit 0b3425a658
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -4,9 +4,10 @@ from .utils import command_allowed
async def join(message):
if message.author.voice:
if message.guild.voice_client:
return await message.guild.voice_client.move_to(message.channel)
elif message.author.voice:
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!")