From d3ac0ed0b17f1bac86381b41365bdf290744e03c Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Thu, 19 Sep 2024 12:43:12 +0200 Subject: [PATCH] A --- voice_recognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voice_recognition.py b/voice_recognition.py index edd7b6e..6e14412 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -141,8 +141,8 @@ class Transcriber(commands.Cog): @commands.hybrid_command(name="transcribe") async def test(self, ctx): logger.info("Attempt transcribe") - if ctx.client.voice_clients: - voice_client = ctx.client.voice_clients[0] + if self.bot.voice_clients: + voice_client = self.bot.voice_clients[0] if not voice_client.is_connected(): logger.info("Connecting to voice") vc = await ctx.author.voice.channel.connect(cls=voice_recv.VoiceRecvClient)