From 089129c5edccbb0b4554291b6109e24b8215e05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Thu, 16 Apr 2026 16:20:18 +0100 Subject: [PATCH] fix: The bot getting stuck when a track cannot be played. --- source/library/services/music.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/library/services/music.ts b/source/library/services/music.ts index 1c9fbad3d..cd83d18f7 100644 --- a/source/library/services/music.ts +++ b/source/library/services/music.ts @@ -535,6 +535,8 @@ class MusicSession extends EventEmitter { )} on ${this.client.diagnostics.guild(this.service.guildId)}.`, ), ); + + await this.advanceQueue(); } async receiveListing({ listing }: { listing: SongListing }): Promise { @@ -639,6 +641,7 @@ class MusicSession extends EventEmitter { async play({ playable }: { playable: Playable }): Promise { const track = await this.#getTrack({ playable }); if (track === undefined) { + await this.advanceQueue(); return false; }