Skip to content

Commit

Permalink
[Enhancement] show songs number in the queue for the jump command
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Nov 3, 2021
1 parent 96870db commit a1a9027
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/Music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ module.exports = {
}

const tracks = queue?.tracks?.map(
(track) => `<@${track.requestedBy.id}>, ${track.title}`
(track, index) =>
`[${index + 1}] - ${track.title} - <@${track.requestedBy.id}>`
);
const queueEmbed = {
color: "#9dcc37",
Expand Down Expand Up @@ -57,7 +58,8 @@ module.exports = {
}

const tracks = queue?.tracks?.map(
(track) => `<@${track.requestedBy.id}>, ${track.title}`
(track, index) =>
`[${index + 1}] - ${track.title} - <@${track.requestedBy.id}>`
);
const queueEmbed = {
color: "#9dcc37",
Expand Down

0 comments on commit a1a9027

Please sign in to comment.