mirror of
https://github.com/danbulant/Shasha
synced 2026-06-09 01:20:58 +00:00
bug fix
This commit is contained in:
parent
6048084486
commit
7213c50113
1 changed files with 3 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ module.exports = class avatar extends commando.Command {
|
||||||
errLog(docErr, msg, this.client);
|
errLog(docErr, msg, this.client);
|
||||||
}
|
}
|
||||||
const footerQuote = r?.["settings"]?.defaultEmbed?.footerQuote;
|
const footerQuote = r?.["settings"]?.defaultEmbed?.footerQuote;
|
||||||
const args = arg.trim().split(/,+/);
|
const args = arg.trim().split(/(?<!\\),+/);
|
||||||
const option = arg.trim().split(/(\-\-)+/);
|
const option = arg.trim().split(/(\-\-)+/);
|
||||||
let user, avatar, member, show;
|
let user, avatar, member, show;
|
||||||
let [allEmb, multipleMemMes, dupliCheck] = [[], [], []];
|
let [allEmb, multipleMemMes, dupliCheck] = [[], [], []];
|
||||||
|
|
@ -33,7 +33,7 @@ module.exports = class avatar extends commando.Command {
|
||||||
avatar = msg.author.displayAvatarURL({size:4096,dynamic:true});
|
avatar = msg.author.displayAvatarURL({size:4096,dynamic:true});
|
||||||
}
|
}
|
||||||
let onceOnly = false;
|
let onceOnly = false;
|
||||||
if (!msg.guild?.member(msg.author).hasPermission("MANAGE_MESSAGES")) {
|
if (msg.guild ? !msg.guild.member(msg.author).hasPermission("MANAGE_MESSAGES") : false) {
|
||||||
onceOnly = true;
|
onceOnly = true;
|
||||||
if (args.length > 1) {
|
if (args.length > 1) {
|
||||||
trySend(this.client, msg, "Manage messages permission required to show two or more avatar at once!");
|
trySend(this.client, msg, "Manage messages permission required to show two or more avatar at once!");
|
||||||
|
|
@ -61,6 +61,7 @@ module.exports = class avatar extends commando.Command {
|
||||||
ree.push(reeRes);
|
ree.push(reeRes);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
user = undefined;
|
||||||
trySend(client, msg, `Can't find user: **${avThis.trim()}**`);
|
trySend(client, msg, `Can't find user: **${avThis.trim()}**`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue