utility.avatar: add aliases

This commit is contained in:
Cynthia Foxwell 2024-07-31 21:09:22 -06:00
parent a39bffd0df
commit cde9d119e0

View file

@ -9,6 +9,9 @@ const avatar = new Command("avatar");
avatar.category = "utility";
avatar.helpText = "Get avatar of a user";
avatar.usage = "<user>";
avatar.addAlias("av");
avatar.addAlias("avi");
avatar.addAlias("pfp");
avatar.callback = async function (msg, line, [user], {server, guild}) {
let member = msg.member ?? msg.author;
const guildObj = msg.channel.guild || hf.bot.guilds.get(msg.guildID);