Fixed error when issuing audio commands on diff servers

This commit is contained in:
Twentysix 2016-03-16 05:23:55 +01:00
parent 6775255bff
commit 951d43b939

View File

@ -557,7 +557,7 @@ class Audio:
async def check_voice(self, author, message):
if self.bot.is_voice_connected():
v_channel = message.server.me.voice_channel
v_channel = self.bot.voice.channel
if author.voice_channel == v_channel:
return True
elif len(v_channel.voice_members) == 1: