This commit is contained in:
Daniel Odendahl Jr
2017-09-04 22:40:12 +00:00
parent 105c6280d4
commit a1915c78ae
+2 -1
View File
@@ -12,7 +12,8 @@ class XiaoCommand extends Command {
}
hasPermission(msg) {
super.hasPermission(msg);
const baseCheck = super.hasPermission(msg);
if (!baseCheck) return baseCheck;
if (this.ownerOnly && !this.client.isOwner(msg.author)) {
return `The \`${this.name}\` command can only be used by the bot owner.`;
}