mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +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
@@ -62,7 +62,7 @@ class SkipCommand extends BaseSlashCommandInteraction {
|
||||
this.embedOptions.icons.skipped
|
||||
} Skipped track**\n${this.getDisplayTrackDurationAndUrl(skippedTrack)}`
|
||||
)
|
||||
.setThumbnail(skippedTrack.thumbnail)
|
||||
.setThumbnail(this.getTrackThumbnailUrl(skippedTrack))
|
||||
.setColor(this.embedOptions.colors.success)
|
||||
]
|
||||
});
|
||||
@@ -114,7 +114,7 @@ class SkipCommand extends BaseSlashCommandInteraction {
|
||||
skippedTrack
|
||||
)}` + `\n\n${repeatModeString}`
|
||||
)
|
||||
.setThumbnail(skippedTrack.thumbnail)
|
||||
.setThumbnail(this.getTrackThumbnailUrl(skippedTrack))
|
||||
.setColor(this.embedOptions.colors.success)
|
||||
]
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user