From 0f4fdb83352cb1d81c53409a110cf8ef1aec55d8 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Sat, 17 Aug 2024 18:16:33 -0400 Subject: [PATCH] Show who requested song g --- commands/queue.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/commands/queue.js b/commands/queue.js index 121f491..b8f7fa3 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -16,16 +16,20 @@ module.exports = { const currentTrackDisplay = currentTrack.url ? `[${currentTrack.title}](${currentTrack.url})` : currentTrack.title; - embed.addFields({ name: 'Currently playing', value: currentTrackDisplay, inline: false }); + embed.addFields({ + name: 'Currently playing', + value: `${currentTrackDisplay} \nRequested by: ${currentTrack.requester}`, + inline: false + }); } if (queue.length > 0) { const queueDisplay = queue.map((track, index) => { const trackDisplay = track.url - ? `**${index + 1}.** [${track.title}](${track.url})` - : `**${index + 1}.** ${track.title}`; + ? `**${index + 1}.** [${track.title}](${track.url}) \nRequested by: ${track.requester}` + : `**${index + 1}.** ${track.title} \nRequested by: ${track.requester}`; return trackDisplay; - }).join('\n'); + }).join('\n\n'); embed.addFields({ name: 'Up next', @@ -38,4 +42,4 @@ module.exports = { message.channel.send({ embeds: [embed] }); } -}; \ No newline at end of file +};