fix: solve bug using getNumber after changing to addIntegerOption

This commit is contained in:
Marius Begby committed 2023-12-13 02:37:13 +01:00
1 parent 6ca7ce3e4b
commit 4b630e2512
8 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ class BackCommand extends BaseSlashCommandInteraction {
checkQueueCurrentTrack
]);
const backToTrackInput: number = interaction.options.getNumber('position')!;
const backToTrackInput: number = interaction.options.getInteger('position')!;
if (backToTrackInput) {
return await this.handleBackToTrackPosition(logger, interaction, history, backToTrackInput);