From a1915c78ae58e1929d50bfadf0f98e99f22529bd Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 4 Sep 2017 22:40:12 +0000 Subject: [PATCH] Suepr --- structures/Command.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/structures/Command.js b/structures/Command.js index 9fc521f2..d0eae721 100644 --- a/structures/Command.js +++ b/structures/Command.js @@ -12,7 +12,8 @@ class XiaoCommand extends Command { } hasPermission(msg) { - super.hasPermission(msg); + const baseCheck = super.hasPermission(msg); + if (!baseCheck) return baseCheck; if (this.ownerOnly && !this.client.isOwner(msg.author)) { return `The \`${this.name}\` command can only be used by the bot owner.`; }