Attach image instead of sending link
This commit is contained in:
parent
e1c0cbcdd3
commit
055035f01d
1 changed files with 2 additions and 2 deletions
|
@ -21,9 +21,9 @@ class AvatarCommand extends Command {
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
if (!args.user)
|
if (!args.user)
|
||||||
return message.channel.send(`Your avatar:\n${message.author.displayAvatarURL()}`);
|
return message.channel.send('Your avatar:', {files: [message.author.displayAvatarURL('png', '2048')]});
|
||||||
else
|
else
|
||||||
return message.channel.send(`${args.user.username}'s avatar:\n${args.user.displayAvatarURL()}`);
|
return message.channel.send(`${args.user.username}'s avatar:`, {files: [args.user.displayAvatarURL('png', '2048')]});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue