first commit
This commit is contained in:
15
embeds/queue.js
Normal file
15
embeds/queue.js
Normal file
@ -0,0 +1,15 @@
|
||||
const { EmbedBuilder } = require('discord.js')
|
||||
|
||||
|
||||
function musicQueueEmbed(queue) {
|
||||
const songLines = queue.map((item, index) =>
|
||||
index === 0 ? `**🎵 Now Playing:** ${item.songName} **Requested By:** ${item.getMember}\n` : `${index + 1}. ${item.songName} - **Requested By:** ${item.getMember}\n`
|
||||
);
|
||||
|
||||
return new EmbedBuilder()
|
||||
.setTitle('Current Queue')
|
||||
.setDescription(songLines.join('\n') || 'No Songs in the queue')
|
||||
.setColor('Blue')
|
||||
}
|
||||
|
||||
module.exports = { musicQueueEmbed }
|
||||
Reference in New Issue
Block a user