From 1f7419d55caafd96e735a37ace5d86c53562e490 Mon Sep 17 00:00:00 2001 From: Loukious Date: Sun, 20 Aug 2023 14:15:25 +0100 Subject: [PATCH] Made the repeat button more representative --- src/events/player/TrackStart.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/events/player/TrackStart.ts b/src/events/player/TrackStart.ts index 5ebcb11dd..0051b1dab 100644 --- a/src/events/player/TrackStart.ts +++ b/src/events/player/TrackStart.ts @@ -28,7 +28,10 @@ export default class TrackStart extends Event { .setStyle(player.paused ? ButtonStyle.Success : ButtonStyle.Secondary); const stopButton = new ButtonBuilder().setCustomId('stop').setEmoji('⏚ī¸').setStyle(ButtonStyle.Danger); const skipButton = new ButtonBuilder().setCustomId('skip').setEmoji('⏊').setStyle(ButtonStyle.Secondary); - const loopButton = new ButtonBuilder().setCustomId('loop').setEmoji('🔁').setStyle(ButtonStyle.Secondary); + const loopButton = new ButtonBuilder() + .setCustomId('loop') + .setEmoji(dispatcher.loop === 'repeat' ? '🔂' : '🔁') + .setStyle(dispatcher.loop !== 'off' ? ButtonStyle.Success : ButtonStyle.Secondary); return new ActionRowBuilder().addComponents( previousButton,