mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: refactored play command and added common method for getting thumbnail url
This commit is contained in:
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>]
|
||||
|
||||
Reference in new issue
Block a user