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