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

+1 -1
View File
@@ -11,7 +11,7 @@ class BackCommand extends BaseSlashCommandInteraction {
const data = new SlashCommandBuilder()
.setName('back')
.setDescription('Go back to previous track or specified position in history.')
.addNumberOption((option) =>
.addIntegerOption((option) =>
option.setName('position').setDescription('The position in history to go back to.').setMinValue(1)
);
super(data);