mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
don't play if already playing
This commit is contained in:
parent
e746654b80
commit
955026b644
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ class Events(commands.Cog):
|
|||
if message.author.voice is not None and message.author.voice.channel is not None:
|
||||
voice: discord.VoiceClient = None
|
||||
if message.guild.voice_client is not None:
|
||||
if message.guild.voice_client.is_playing():
|
||||
return
|
||||
try:
|
||||
await _dc(message.guild.voice_client)
|
||||
except discord.HTTPException:
|
||||
|
|
Loading…
Reference in a new issue