mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix
This commit is contained in:
@@ -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)) {
|
if (this.patronOnly && !this.client.patreon.isPatron(msg.author.id)) {
|
||||||
return stripIndents`
|
return stripIndents`
|
||||||
The \`${this.name}\` command can only be used by Patrons.
|
The \`${this.name}\` command can only be used by Patrons.
|
||||||
Visit <https://www.patreon.com/xiaodiscord> to sign-up!
|
Visit <https://www.patreon.com/xiaodiscord> to sign-up!
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
return super.hasPermission(msg);
|
return super.hasPermission(msg, ownerOverride);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user