This commit is contained in:
Daniel Odendahl Jr
2017-09-04 21:52:17 +00:00
parent 9d208c5c70
commit 105c6280d4
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -12,6 +12,7 @@ class XiaoCommand extends Command {
}
hasPermission(msg) {
super.hasPermission(msg);
if (this.ownerOnly && !this.client.isOwner(msg.author)) {
return `The \`${this.name}\` command can only be used by the bot owner.`;
}