mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Pokédex Command
This commit is contained in:
@@ -20,6 +20,11 @@ module.exports = class AvatarCommand extends Command {
|
||||
|
||||
run(msg, args) {
|
||||
const user = args.user || msg.author;
|
||||
return msg.say(user.displayAvatarURL({ size: 2048 }));
|
||||
if (!user.avatar) return msg.say('This user has no avatar.');
|
||||
const avatar = user.avatarURL({
|
||||
format: user.avatar.startsWith('a_') ? 'gif' : 'png',
|
||||
size: 2048
|
||||
});
|
||||
return msg.say(avatar);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user