fix: Fixed error when no thumbnail available

This commit is contained in:
Marius Begby committed 2023-07-27 15:04:43 +02:00
1 parent 8b0c0e3d54
commit 80f26af242
1 file changed
+1 -1
+1 -1
View File
@@ -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';
}