mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 14:38:49 +00:00
fix: change addNumberOption to addIntegerOption
This commit is contained in:
1 parent
47f45a559f
commit
6ca7ce3e4b
8 files changed
+11
-9
No files matched your search
@@ -4,7 +4,7 @@ import {
|
||||
EmbedBuilder,
|
||||
Message,
|
||||
SlashCommandBuilder,
|
||||
SlashCommandNumberOption
|
||||
SlashCommandIntegerOption
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
@@ -17,8 +17,8 @@ class LoopCommand extends BaseSlashCommandInteraction {
|
||||
const data = new SlashCommandBuilder()
|
||||
.setName('loop')
|
||||
.setDescription('Toggle looping a track, the whole queue or autoplay.')
|
||||
.addNumberOption(() =>
|
||||
new SlashCommandNumberOption()
|
||||
.addIntegerOption(() =>
|
||||
new SlashCommandIntegerOption()
|
||||
.setName('mode')
|
||||
.setDescription('Loop mode: Track, queue, autoplay or disabled.')
|
||||
.setRequired(false)
|
||||
|
||||
Reference in new issue
Block a user