Show who requested song g
This commit is contained in:
parent
d1abe19c88
commit
0f4fdb8335
|
@ -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] });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue