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