Update play.js

Awareness on the whole argument when we add a music to the queue
This commit is contained in:
swarwerth
2020-08-24 00:39:55 +02:00
committed by GitHub
parent 63ca56498c
commit 4f779231fd

View File

@@ -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'){