mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
Фикс
Отправлять гифку, если у пользователя анимированная ава
This commit is contained in:
parent
907e76db9d
commit
621133f5bd
1 changed files with 2 additions and 4 deletions
|
@ -20,16 +20,14 @@ class Avatar extends Command {
|
|||
let user = await this.client.resolveUser(args[0]);
|
||||
if (!user) user = message.author;
|
||||
const avatarURL = user.displayAvatarURL({
|
||||
size: 512,
|
||||
dynamic: true,
|
||||
format: "png"
|
||||
size: 512
|
||||
});
|
||||
|
||||
if (message.content.includes("link")) message.channel.send({ content: `<${avatarURL}>` });
|
||||
if (args[0] === "link") return message.channel.send({ content: `<${avatarURL}>` });
|
||||
|
||||
message.channel.send({
|
||||
files: [{
|
||||
name: "avatar.png",
|
||||
attachment: avatarURL
|
||||
}]
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue