diff --git a/src/classes/interactions.ts b/src/classes/interactions.ts index 2e99344..2e2840b 100644 --- a/src/classes/interactions.ts +++ b/src/classes/interactions.ts @@ -152,22 +152,22 @@ abstract class BaseInteraction { return progressBar; } - protected getDisplayRepeatMode(repeatMode: number): string { + protected getDisplayRepeatMode(repeatMode: number, state: string = 'info'): string { let loopModeUserString: string; let icon: string; switch (repeatMode) { case 1: loopModeUserString = 'track'; - icon = this.embedOptions.icons.loop; + icon = state === 'info' ? this.embedOptions.icons.loop : this.embedOptions.icons.looping; break; case 2: loopModeUserString = 'queue'; - icon = this.embedOptions.icons.loop; + icon = state === 'info' ? this.embedOptions.icons.loop : this.embedOptions.icons.looping; break; case 3: loopModeUserString = 'autoplay'; - icon = this.embedOptions.icons.autoplay; + icon = state === 'info' ? this.embedOptions.icons.autoplay : this.embedOptions.icons.autoplaying; break; default: return ''; diff --git a/src/interactions/components/nowplaying-skip-button.ts b/src/interactions/components/nowplaying-skip-button.ts index 72013f7..bb7dd6a 100644 --- a/src/interactions/components/nowplaying-skip-button.ts +++ b/src/interactions/components/nowplaying-skip-button.ts @@ -71,7 +71,7 @@ class NowplayingSkipButton extends BaseComponentInteraction { .setDescription( `**${this.embedOptions.icons.skipped} Skipped track**\n` + `${this.getDisplayTrackDurationAndUrl(skippedTrack)}\n\n` + - `${this.getDisplayRepeatMode(queue.repeatMode)}` + `${this.getDisplayRepeatMode(queue.repeatMode, 'success')}` ) .setThumbnail(skippedTrack.thumbnail) .setColor(this.embedOptions.colors.success);