Skip to content

Commit

Permalink
🔢 Fixed an issue with receiving numeric values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed May 3, 2024
1 parent 1dfe285 commit e5046ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/commands/music/jump.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
.setMinValue(1)
),
async execute(interaction) {
const inputAmount = interaction.options.getNumber('number')
const inputAmount = interaction.options.getInteger('number')

const djs = interaction.client.configs.djs
const queue = interaction.client.player.getQueue(interaction)
Expand Down
2 changes: 1 addition & 1 deletion source/commands/music/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
.setMaxValue(2)
),
async execute(interaction) {
const inputMode = interaction.options.getNumber('mode')
const inputMode = interaction.options.getInteger('mode')

const djs = interaction.client.configs.djs
const queue = interaction.client.player.getQueue(interaction)
Expand Down
2 changes: 1 addition & 1 deletion source/commands/music/seek.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
.setMinValue(0)
),
async execute(interaction) {
const inputSecond = interaction.options.getNumber('second')
const inputSecond = interaction.options.getInteger('second')

const djs = interaction.client.configs.djs
const queue = interaction.client.player.getQueue(interaction)
Expand Down

0 comments on commit e5046ac

Please sign in to comment.