You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
684 B

module.exports = {
name: 'queue',
description: 'Display the queue for the next items',
execute(message) {
const serverQueue = message.client.queue.get(message.guild.id);
if (!serverQueue) return message.channel.send('There is nothing in queue.');
message_txt = `There are ${serverQueue.songs.length} items on the list\n`
message_txt += "```\n";
c = 0
serverQueue.songs.forEach(function (item, index){
if(c == 10){
return;
}
c += 1;
message_txt += `${index}: ${item.title}\n`
})
message_txt += "\n```";
return message.channel.send(message_txt);
},
};