mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
Add behavior option to enable/disable player start messages
This commit is contained in:
1 parent
99c3cd006f
commit
d91bf74991
5 files changed
+25
-3
No files matched your search
@@ -189,6 +189,16 @@ class PlayCommand extends BaseSlashCommandInteraction {
|
||||
const posistionFirstTrackInPlaylist = queue.tracks.data.length - searchResult.tracks.length + 1;
|
||||
embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator);
|
||||
}
|
||||
} else if (queue.currentTrack === track && queue.tracks.data.length === 0) {
|
||||
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
||||
message =
|
||||
translator('musicPlayerCommon.nowPlayingTitle', {
|
||||
icon: this.embedOptions.icons.audioStartedPlaying
|
||||
}) +
|
||||
'\n' +
|
||||
trackUrl;
|
||||
embedFooter = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user