From 80f26af2427f91dea6ef155a7139348318fd370a Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 27 Jul 2023 15:04:43 +0200 Subject: [PATCH] fix: Fixed error when no thumbnail available --- src/commands/player/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/player/play.js b/src/commands/player/play.js index eab1656..b2d6f46 100644 --- a/src/commands/player/play.js +++ b/src/commands/player/play.js @@ -237,7 +237,7 @@ module.exports = { }); } - if (track.source === 'arbitrary') { + if (track.source === 'arbitrary' || !track.thumnail) { track.thumbnail = 'https://raw.githubusercontent.com/mariusbegby/cadence-discord-bot/main/assets/logo-rounded-128px.png'; }