fix(commands/voice): check if message author has a voice channel

This commit is contained in:
Ryan 2024-12-31 19:26:56 -05:00
parent 2c4a0921a7
commit bfa1a35922
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -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