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

+1 -1
View File
@@ -138,7 +138,7 @@ class QueueCommand extends BaseSlashCommandInteraction {
`${repeatModeString}` +
`**${this.embedOptions.icons.queue} Tracks in queue**\n${queueString}`
)
.setThumbnail(currentTrack.thumbnail)
.setThumbnail(this.getTrackThumbnailUrl(currentTrack))
.setFooter({
text: `Page ${pageIndex + 1} of ${totalPages} (${queueLength} tracks)`
})