mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
allow to set 0
This commit is contained in:
parent
0ac2ec26c2
commit
e8f58c4452
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class Set extends Command {
|
|||
if (member.user.bot) return message.error("administration/set:BOT_USER");
|
||||
|
||||
const number = args[2];
|
||||
if (!number || isNaN(number) || parseInt(number, 10) <= 0) return message.error("administration/set:INVALID_AMOUNT");
|
||||
if (!number || isNaN(number) || parseInt(number, 10) < 0) return message.error("administration/set:INVALID_AMOUNT");
|
||||
const amount = Math.ceil(parseInt(number, 10));
|
||||
|
||||
const memberData = await this.client.findOrCreateMember({
|
||||
|
|
Loading…
Reference in a new issue