fixed visible prop bug

This commit is contained in:
mmacierzanka committed 2021-06-21 19:43:07 +02:00
1 parent dc4787fcea
commit aed8044905
1 file changed
+1 -1
+1 -1
View File
@@ -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[]) {