diff --git a/commands/voice.py b/commands/voice.py index 3fdc28b..4d7321b 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -325,6 +325,12 @@ async def volume(message): def delete_queued(messages): + if messages[0].guild.id not in players: + return + + if len(players[messages[0].guild.id].queue) == 0: + return + found = [] for message in messages: for queued in players[message.guild.id].queue: