mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
Fixed error when issuing audio commands on diff servers
This commit is contained in:
parent
6775255bff
commit
951d43b939
@ -557,7 +557,7 @@ class Audio:
|
|||||||
|
|
||||||
async def check_voice(self, author, message):
|
async def check_voice(self, author, message):
|
||||||
if self.bot.is_voice_connected():
|
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:
|
if author.voice_channel == v_channel:
|
||||||
return True
|
return True
|
||||||
elif len(v_channel.voice_members) == 1:
|
elif len(v_channel.voice_members) == 1:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user