mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class XiaoCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hasPermission(msg, ownerOverride) {
|
hasPermission(msg, ownerOverride) {
|
||||||
if (ownerOverride && this.client.isOwner(msg.author)) return true;
|
if (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.
|
||||||
|
|||||||
Reference in New Issue
Block a user