✨ Support playlists
This commit is contained in:
@@ -27,7 +27,7 @@ exports.run = async (client, message, args) => {
|
|||||||
// Else, play the song
|
// Else, play the song
|
||||||
const result = await client.player.play(message.member.voice.channel, args.join(" "));
|
const result = await client.player.play(message.member.voice.channel, args.join(" "));
|
||||||
if(result.type === 'playlist'){
|
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 {
|
} else {
|
||||||
message.channel.send(`Currently playing ${result.name} ${emotes.music}`);
|
message.channel.send(`Currently playing ${result.name} ${emotes.music}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user