From a426135170bf045417ad78bc5335974e2ea8b6c2 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 15 Jul 2023 04:53:42 +0200 Subject: [PATCH 1/2] fix: solve error if track.metadata.bridge is not set --- commands/nowplaying.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/nowplaying.js b/commands/nowplaying.js index 275a1fb..21481cf 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -67,6 +67,7 @@ module.exports = { let plays = currentTrack.views !== 0 ? currentTrack.views : 0; if ( plays === 0 && + currentTrack.metadata.bridge && currentTrack.metadata.bridge.views !== 0 && currentTrack.metadata.bridge.views !== undefined ) { From d31f4ed95847942df86894ed4e6d51d78d73a207 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 15 Jul 2023 04:54:01 +0200 Subject: [PATCH 2/2] fix: Remove period after link to source in user message --- commands/remove.js | 2 +- commands/skip.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/remove.js b/commands/remove.js index 0f9a715..bfe792f 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -71,7 +71,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.success} Removed track**\n${durationFormat} **[${removedTrack.title}](${removedTrack.url})**.` + `**${embedIcons.success} Removed track**\n${durationFormat} **[${removedTrack.title}](${removedTrack.url})**` ) .setThumbnail(removedTrack.thumbnail) .setColor(embedColors.colorSuccess) diff --git a/commands/skip.js b/commands/skip.js index 2de89f1..d8371d9 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -71,7 +71,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` + `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess) @@ -107,7 +107,7 @@ module.exports = { iconURL: interaction.user.avatarURL() }) .setDescription( - `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**.` + `**${embedIcons.skipped} Skipped track**\n${durationFormat} **[${skippedTrack.title}](${skippedTrack.url})**` ) .setThumbnail(skippedTrack.thumbnail) .setColor(embedColors.colorSuccess)