From 4f779231fdc4986faec9c9152b267148c692864b Mon Sep 17 00:00:00 2001 From: swarwerth Date: Mon, 24 Aug 2020 00:39:55 +0200 Subject: [PATCH] Update play.js Awareness on the whole argument when we add a music to the queue --- commands/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/play.js b/commands/play.js index a84bd9c..72c6fbc 100644 --- a/commands/play.js +++ b/commands/play.js @@ -15,7 +15,7 @@ exports.run = async (client, message, args) => { if(aTrackIsAlreadyPlaying){ // Add the track to the queue - const result = await client.player.addToQueue(message.guild.id, args[0]); + const result = await client.player.addToQueue(message.guild.id, args.join(" ")).catch(() => {}); if(!result) return message.channel.send(`This song provider is not supported...`); if(result.type === 'playlist'){