don't play if already playing

This commit is contained in:
nexy7574 2023-03-22 16:50:37 +00:00
parent e746654b80
commit 955026b644

View file

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