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); } };