aboutsummaryrefslogtreecommitdiff
path: root/src/commands/loop.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/loop.ts')
-rw-r--r--src/commands/loop.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/loop.ts b/src/commands/loop.ts
index 6618e84..f654237 100644
--- a/src/commands/loop.ts
+++ b/src/commands/loop.ts
@@ -27,6 +27,10 @@ export default class implements Command {
throw new Error('no song to loop!');
}
+ if (player.loopCurrentQueue) {
+ player.loopCurrentQueue = false;
+ }
+
player.loopCurrentSong = !player.loopCurrentSong;
await interaction.reply((player.loopCurrentSong ? 'looped :)' : 'stopped looping :('));