Recently made a queue command for my bot and it works, but I'm wanting it to display in a RichEmbed.
let resp = `**Now Playing:**
${nowPlaying.songTitle}
**Requested By:**
${nowPlaying.requester}
**Queue**
`
for (var i = 1; i < queue.length; i++) {
resp += `${i}. **${queue[i].songTitle}**
**Requested By:** ${queue[i].requester}
`
}
This is the current code I have set to display the queue. Now, my exact problem is resp +=
. I know that each time a song is added to the queue and the command is rerun, it will have it listed as it is in the queue, but I'm still teaching myself Node.JS, so this is a little more difficult to solve, as I've never had any commands that use +=
to send an updated message.