fix /increase and /decrease

This commit is contained in:
Jill 2022-10-17 21:04:30 +03:00
parent f8f2c72fba
commit 4aa1089031
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
};

View File

@ -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);
}
};