Skip to content

Commit

Permalink
Made the repeat button more representative
Browse files Browse the repository at this point in the history
  • Loading branch information
Loukious committed Aug 20, 2023
1 parent 288bb60 commit 1f7419d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/events/player/TrackStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ButtonBuilder>().addComponents(
previousButton,
Expand Down

0 comments on commit 1f7419d

Please sign in to comment.