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