prefer addIntegerOption over addNumberOption

This commit is contained in:
Jill 2022-08-26 19:43:28 +03:00
parent e2ff3e9594
commit f11c7681f0
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module.exports = {
data: new SlashCommandBuilder()
.setName('decrease')
.setDescription('Decrease the counter')
.addNumberOption((option) =>
.addIntegerOption((option) =>
option
.setName('amount')
.setRequired(false)

View File

@ -6,7 +6,7 @@ module.exports = {
data: new SlashCommandBuilder()
.setName('increase')
.setDescription('Increase the counter')
.addNumberOption((option) =>
.addIntegerOption((option) =>
option
.setName('amount')
.setRequired(false)