mirror of
https://github.com/danbulant/Shasha
synced 2026-05-26 05:11:56 +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});
|
||||
}
|
||||
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;
|
||||
if (args.length > 1) {
|
||||
trySend(this.client, msg, "Manage messages permission required to show two or more avatar at once!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue