This commit is contained in:
Daniel Odendahl Jr
2017-09-05 00:30:28 +00:00
parent a1915c78ae
commit cda61f1545
4 changed files with 59 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class XiaoCommand extends Command {
hasPermission(msg) {
const baseCheck = super.hasPermission(msg);
if (!baseCheck) return baseCheck;
if (!baseCheck || typeof baseCheck === 'string') return baseCheck;
if (this.ownerOnly && !this.client.isOwner(msg.author)) {
return `The \`${this.name}\` command can only be used by the bot owner.`;
}