aboutsummaryrefslogtreecommitdiff
path: root/src/commands/loop.ts
diff options
context:
space:
mode:
authorReynard G <[email protected]>2024-01-16 19:44:44 -0600
committerGitHub <[email protected]>2024-01-16 19:44:44 -0600
commit769f9da8a21ca467964142f57c79a0f482232900 (patch)
treee5bc1bf82630db97d6d871597294eeb1afc4da96 /src/commands/loop.ts
parent45bdbd1494a59f590ec7a29a65df022ae6af05ab (diff)
downloadmuse-769f9da8a21ca467964142f57c79a0f482232900.tar.xz
muse-769f9da8a21ca467964142f57c79a0f482232900.zip
Add /loop-queue command (#989)
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 :('));