fix /increase and /decrease
This commit is contained in:
parent
f8f2c72fba
commit
4aa1089031
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
|
|
||||||
execute: async (interaction: CommandInteraction, member: GuildMember) => {
|
execute: async (interaction: CommandInteraction, member: GuildMember) => {
|
||||||
await interaction.deferReply({ephemeral: true});
|
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);
|
changeCounterInteraction(interaction, member, -amount);
|
||||||
}
|
}
|
||||||
};
|
};
|
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
|
|
||||||
execute: async (interaction: CommandInteraction, member: GuildMember) => {
|
execute: async (interaction: CommandInteraction, member: GuildMember) => {
|
||||||
await interaction.deferReply({ephemeral: true});
|
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);
|
changeCounterInteraction(interaction, member, amount);
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue