From 4aa1089031ec1bed5251924caac8ec0e5b54c0a1 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Mon, 17 Oct 2022 21:04:30 +0300 Subject: [PATCH] fix /increase and /decrease --- 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 034e708..25be669 100644 --- a/src/commands/decrease.ts +++ b/src/commands/decrease.ts @@ -16,7 +16,7 @@ module.exports = { execute: async (interaction: CommandInteraction, member: GuildMember) => { await interaction.deferReply({ephemeral: true}); - const amount = Math.trunc(interaction.options.getNumber('amount') || 1); + const amount = Math.trunc(interaction.options.getInteger('amount') || 1); changeCounterInteraction(interaction, member, -amount); } }; \ No newline at end of file diff --git a/src/commands/increase.ts b/src/commands/increase.ts index f5e2f2f..4f80441 100644 --- a/src/commands/increase.ts +++ b/src/commands/increase.ts @@ -16,7 +16,7 @@ module.exports = { execute: async (interaction: CommandInteraction, member: GuildMember) => { await interaction.deferReply({ephemeral: true}); - const amount = Math.trunc(interaction.options.getNumber('amount') || 1); + const amount = Math.trunc(interaction.options.getInteger('amount') || 1); changeCounterInteraction(interaction, member, amount); } }; \ No newline at end of file