fix: change addNumberOption to addIntegerOption

This commit is contained in:
Marius Begby committed 2023-12-13 02:16:50 +01:00
1 parent 47f45a559f
commit 6ca7ce3e4b
8 files changed
+11 -9

No files matched your search

+3 -3
View File
@@ -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)