Use track everywhere in the code

This commit is contained in:
Androz2091
2020-06-24 11:00:58 +02:00
parent 838c1d0bdd
commit 3ce8273984
6 changed files with 35 additions and 22 deletions

View File

@@ -6,11 +6,14 @@ module.exports.run = async (client, message) => {
const queue = client.player.getQueue(message.guild.id);
if(!queue) return message.channel.send(`**No songs currently playing ${emotes.error}**`);
if(!queue) return message.channel.send(`**No tracks currently playing ${emotes.error}**`);
message.channel.send(`**Server queue ${emotes.queue}** \n`+(queue.songs.map((song, i) => {
return `${i === 0 ? 'Current' : `#${i+1}`} - ${song.name} | ${song.author}`
}).join('\n')));
message.channel.send(`**Server queue ${emotes.queue}** \nCurrent - ${queue.playing.name} | ${queue.playing.author}\n`+
(
queue.tracks.map((track, i) => {
return `#${i+1} - ${track.name} | ${track.author}`
}).join('\n')
));
};