From 6546cb8d63c626adf3256f65c77db61081638ed7 Mon Sep 17 00:00:00 2001 From: aki Date: Thu, 24 Apr 2025 03:15:04 +0800 Subject: [PATCH] if wsl wasn't so broken, i didn't need to commit this much :) fix(ShoukakuEvents.js): ensure playback track payload structure matches expected format --- src/structures/ShoukakuEvents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/ShoukakuEvents.js b/src/structures/ShoukakuEvents.js index 6a20201..4edeb5b 100644 --- a/src/structures/ShoukakuEvents.js +++ b/src/structures/ShoukakuEvents.js @@ -58,8 +58,8 @@ class MusicPlayer { logger.debug(`Attempting to play track: ${track.info.title} (${track.info.uri}) in guild ${this.guild}`); logger.debug(`Track encoded data: ${track.encoded}`); // Log encoded data try { - // Start playback - await this.connection.playTrack({ track: track.encoded }); + // Start playback - Ensure payload matches { track: { encoded: "..." } } + await this.connection.playTrack({ track: { encoded: track.encoded } }); this.playing = true; logger.debug(`playTrack called successfully for: ${track.info.title}`); } catch (playError) {