化身命令解析
Avatar command resolution
基本上我正在尝试创建一个头像命令,但它向我显示了头像,但图像分辨率很差。那我该如何解决呢?
这是我的代码
module.exports = {
name: "avatar",
aliases: ["icon", "pfp"],
category: "Fun",
description: "Return A User Avatar!",
usage: "Avatar | <Mention Or ID>",
run: async (client, message, args) => {
const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
const Embed = new Discord.MessageEmbed()
.setDescription(message.author.tag + " 's Avatar")
.setColor("#800000")
.setImage(Member.user.displayAvatarURL({size: 1024, dynamic: true}))
.setFooter(`Requested By ${message.author.username}`)
.setTimestamp();
return message.channel.send(Embed);
}
};
module.exports.config = {
name: 'avatar',
description: 'do a avatar',
usage: 'avatar',
botPerms: [],
userPerms: [],
aliases: ['av'],
};
.setImage(Member.user.displayAvatarURL({size: 1024, dynamic: true}))
改用 256 或 512。其实还是要看用户的头像本身。
基本上我正在尝试创建一个头像命令,但它向我显示了头像,但图像分辨率很差。那我该如何解决呢?
这是我的代码
module.exports = {
name: "avatar",
aliases: ["icon", "pfp"],
category: "Fun",
description: "Return A User Avatar!",
usage: "Avatar | <Mention Or ID>",
run: async (client, message, args) => {
const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
const Embed = new Discord.MessageEmbed()
.setDescription(message.author.tag + " 's Avatar")
.setColor("#800000")
.setImage(Member.user.displayAvatarURL({size: 1024, dynamic: true}))
.setFooter(`Requested By ${message.author.username}`)
.setTimestamp();
return message.channel.send(Embed);
}
};
module.exports.config = {
name: 'avatar',
description: 'do a avatar',
usage: 'avatar',
botPerms: [],
userPerms: [],
aliases: ['av'],
};
.setImage(Member.user.displayAvatarURL({size: 1024, dynamic: true}))
改用 256 或 512。其实还是要看用户的头像本身。