fix: indicate live track for duration

This commit is contained in:
Marius Begby committed 2023-08-25 23:09:49 +02:00
1 parent 91570e7c2e
commit 0111d3af37
6 files changed
+71 -8

No files matched your search

+4
View File
@@ -59,6 +59,10 @@ module.exports = {
let durationFormat =
removedTrack.raw.duration === 0 || removedTrack.duration === '0:00' ? '' : `\`${removedTrack.duration}\``;
if (removedTrack.raw.live) {
durationFormat = `\`${embedOptions.icons.liveTrack} LIVE\``;
}
logger.debug(
`[Shard ${interaction.guild.shardId}] User used command ${interaction.commandName} and removed track.`
);