From 2dcfa1cfacc318ce26892baedd0b1487e4083ba9 Mon Sep 17 00:00:00 2001 From: entar Date: Fri, 23 May 2025 06:35:31 +0700 Subject: [PATCH] Unfixed downloading into subfolders --- commands/voice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/voice.js b/commands/voice.js index 1ca7ce6..310343b 100644 --- a/commands/voice.js +++ b/commands/voice.js @@ -59,7 +59,7 @@ module.exports = [ '-f', 'best', '-o', - `${dir}/music/'${metadata.title}.mp3'`, + `${dir}/music/${metadata.title}.mp3`, '--extract-audio', '--audio-format', 'mp3' @@ -75,7 +75,7 @@ module.exports = [ players[ctx.guild.id] = player // Loading music - const resource = createAudioResource(`${dir}/music/'${metadata.title}.mp3'`) + const resource = createAudioResource(`${dir}/music/${metadata.title}.mp3`) // Playing the music with the player player.play(resource)