From e8f58c4452c8b3615f1b8f7bdae9cb65e7e8bf46 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 29 Dec 2021 02:27:48 +0500 Subject: [PATCH] allow to set 0 --- commands/Administration/set.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Administration/set.js b/commands/Administration/set.js index ce367ad7..e5fd5a88 100644 --- a/commands/Administration/set.js +++ b/commands/Administration/set.js @@ -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({