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