From 0666be46713617f2ee44c9a85299d3b3bfbc3409 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 18 May 2021 21:43:17 -0400 Subject: [PATCH] Fix --- structures/Command.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/structures/Command.js b/structures/Command.js index 05d49c9f..da0f69ca 100644 --- a/structures/Command.js +++ b/structures/Command.js @@ -19,13 +19,14 @@ module.exports = class XiaoCommand extends Command { }); } - hasPermission(msg) { + hasPermission(msg, ownerOverride) { + if (ownerOverride && this.client.isOwner(msg.author)) return true; if (this.patronOnly && !this.client.patreon.isPatron(msg.author.id)) { return stripIndents` The \`${this.name}\` command can only be used by Patrons. Visit to sign-up! `; } - return super.hasPermission(msg); + return super.hasPermission(msg, ownerOverride); } };