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)