Support playlists

This commit is contained in:
Zerio
2020-06-24 19:16:12 +02:00
committed by GitHub
parent 55c65003ca
commit 965c6ba9a9

View File

@@ -27,7 +27,7 @@ exports.run = async (client, message, args) => {
// Else, play the song
const result = await client.player.play(message.member.voice.channel, args.join(" "));
if(result.type === 'playlist'){
message.channel.send(`${result.tracks.length} songs added to the queue ${emotes.music}\nCurrently playing **${result.tracks[0].name}**!`);
message.channel.send(`${result.tracks.length} songs added to the queue ${emotes.music}\nCurrently playing ${result.tracks[0].name} !`);
} else {
message.channel.send(`Currently playing ${result.name} ${emotes.music}`);
}