From 2ea3d74e8a2259fcc7e201afb1e81b45158aca9d Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Tue, 7 Jan 2025 14:49:13 -0500 Subject: [PATCH] fix(commands/voice): return early if voice_client doesn't exist --- commands/voice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/voice.py b/commands/voice.py index 5f7fdee..e395953 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -447,6 +447,9 @@ def play_after_callback(e, message, once): def play_next(message, once=False, first=False): + if not message.guild.voice_client: + return + message.guild.voice_client.stop() if message.guild.id in players and players[message.guild.id].queue: queued = players[message.guild.id].queue_pop()