fix: put lock on skip command

This commit is contained in:
Ryan 2025-01-01 15:38:07 -05:00
parent db2be32a43
commit d0ddb36812
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -104,6 +104,7 @@ async def on_message(message):
async with command_locks[message.guild.id]: async with command_locks[message.guild.id]:
await commands.voice.queue_or_play(message) await commands.voice.queue_or_play(message)
case C.SKIP: case C.SKIP:
async with command_locks[message.guild.id]:
await commands.voice.skip(message) await commands.voice.skip(message)
case C.RESUME: case C.RESUME:
await commands.voice.resume(message) await commands.voice.resume(message)