From bfa1a35922662ef5dea6956cbfb9293bfd587fe8 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Tue, 31 Dec 2024 19:26:56 -0500 Subject: [PATCH] fix(commands/voice): check if message author has a voice channel --- commands/voice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/voice.py b/commands/voice.py index e52f97c..90ba18f 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -285,6 +285,6 @@ async def ensure_joined(message): def command_allowed(message): - if not message.guild.voice_client: + if not message.author.voice or not message.guild.voice_client: return False return message.author.voice.channel.id == message.guild.voice_client.channel.id