mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: solve bug using getNumber after changing to addIntegerOption
This commit is contained in:
1 parent
6ca7ce3e4b
commit
4b630e2512
8 files changed
+8
-8
No files matched your search
@@ -44,7 +44,7 @@ class LoopCommand extends BaseSlashCommandInteraction {
|
||||
checkQueueExists
|
||||
]);
|
||||
|
||||
const userInputRepeatMode: QueueRepeatMode = interaction.options.getNumber('mode')!;
|
||||
const userInputRepeatMode: QueueRepeatMode = interaction.options.getInteger('mode')!;
|
||||
const currentRepeatMode: QueueRepeatMode = queue.repeatMode;
|
||||
|
||||
if (!userInputRepeatMode && userInputRepeatMode !== 0) {
|
||||
|
||||
Reference in new issue
Block a user