This commit is contained in:
Dragon Fire
2021-05-18 21:43:17 -04:00
parent 73f51e3a2d
commit 0666be4671
+3 -2
View File
@@ -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 <https://www.patreon.com/xiaodiscord> to sign-up!
`;
}
return super.hasPermission(msg);
return super.hasPermission(msg, ownerOverride);
}
};