mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 00:09:08 +02:00
Updoot
This commit is contained in:
@@ -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.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user