From aed8044905e200dc40d53bab9c1a2b4582c5eae5 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Mon, 21 Jun 2021 19:43:07 +0200 Subject: [PATCH] fixed visible prop bug --- src/Command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.ts b/src/Command.ts index 0a72cea..3fab041 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -50,7 +50,7 @@ class Command { this.description = options.description || "No description"; this.usage = options.usage || ""; this.permissions = new Permissions(options.permissions || 0); - this.visible = options.visible || true; + this.visible = options.visible != undefined ? options.visible : true; this.function = options.function; } async start(message?: Message, cmdArguments?: string[]) {