Show who requested song g

This commit is contained in:
Wizzard 2024-08-17 18:16:33 -04:00
parent d1abe19c88
commit 0f4fdb8335
1 changed files with 9 additions and 5 deletions

View File

@ -16,16 +16,20 @@ module.exports = {
const currentTrackDisplay = currentTrack.url const currentTrackDisplay = currentTrack.url
? `[${currentTrack.title}](${currentTrack.url})` ? `[${currentTrack.title}](${currentTrack.url})`
: currentTrack.title; : 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) { if (queue.length > 0) {
const queueDisplay = queue.map((track, index) => { const queueDisplay = queue.map((track, index) => {
const trackDisplay = track.url const trackDisplay = track.url
? `**${index + 1}.** [${track.title}](${track.url})` ? `**${index + 1}.** [${track.title}](${track.url}) \nRequested by: ${track.requester}`
: `**${index + 1}.** ${track.title}`; : `**${index + 1}.** ${track.title} \nRequested by: ${track.requester}`;
return trackDisplay; return trackDisplay;
}).join('\n'); }).join('\n\n');
embed.addFields({ embed.addFields({
name: 'Up next', name: 'Up next',