From f11c7681f08977fbb2d720bd57dd71a43dc4401c Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Fri, 26 Aug 2022 19:43:28 +0300 Subject: [PATCH] prefer addIntegerOption over addNumberOption --- src/commands/decrease.ts | 2 +- src/commands/increase.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/decrease.ts b/src/commands/decrease.ts index fae6be4..2154ad2 100644 --- a/src/commands/decrease.ts +++ b/src/commands/decrease.ts @@ -6,7 +6,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('decrease') .setDescription('Decrease the counter') - .addNumberOption((option) => + .addIntegerOption((option) => option .setName('amount') .setRequired(false) diff --git a/src/commands/increase.ts b/src/commands/increase.ts index 7afee15..11527e1 100644 --- a/src/commands/increase.ts +++ b/src/commands/increase.ts @@ -6,7 +6,7 @@ module.exports = { data: new SlashCommandBuilder() .setName('increase') .setDescription('Increase the counter') - .addNumberOption((option) => + .addIntegerOption((option) => option .setName('amount') .setRequired(false)