fix: refactored play command and added common method for getting thumbnail url

This commit is contained in:
Marius Begby committed 2023-09-12 20:54:49 +02:00
1 parent 85e27afc5c
commit bf30d565d7
7 files changed
+248 -196

No files matched your search

@@ -79,7 +79,7 @@ class NowPlayingCommand extends BaseSlashCommandInteraction {
.setFooter({
text: tracksInQueueCount ? `${tracksInQueueCount} other tracks in the queue...` : ' '
})
.setThumbnail(queue.currentTrack!.thumbnail)
.setThumbnail(this.getTrackThumbnailUrl(queue.currentTrack!))
.setColor(this.embedOptions.colors.info)
],
components: [embedActionRow as APIActionRowComponent<APIMessageActionRowComponent>]