mirror of
https://github.com/danbulant/Shasha
synced 2026-06-09 09:30:47 +00:00
fixed bug
This commit is contained in:
parent
bd59af61b0
commit
5408b98b83
1 changed files with 1 additions and 1 deletions
|
|
@ -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 && !msg.guild.member(msg.author).hasPermission("MANAGE_MESSAGES")) {
|
if (!msg.guild?.member(msg.author).hasPermission("MANAGE_MESSAGES")) {
|
||||||
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!");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue