Compare commits

..

No commits in common. "3e84bdb299b45c093b1eed7de83fd7d16e41ae6a" and "a39bffd0df3993bb45b2978158b838792e33eb9b" have entirely different histories.

2 changed files with 5 additions and 18 deletions

View file

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

View file

@ -69,11 +69,7 @@ lookupinvite.callback = async function (msg, line) {
const inviter = invite.inviter const inviter = invite.inviter
? { ? {
name: "Inviter", name: "Inviter",
value: `${ value: `**${formatUsername(invite.inviter)}** (${invite.inviter.id})`,
invite.inviter.global_name
? `**${invite.inviter.global_name}** (${formatUsername(invite.inviter)})`
: `**${formatUsername(invite.inviter)}**`
} \`(${invite.inviter.id})\``,
inline: false, inline: false,
} }
: null; : null;
@ -84,12 +80,12 @@ lookupinvite.callback = async function (msg, line) {
...[ ...[
{ {
name: "Guild", name: "Guild",
value: `**${invite.guild.name}** \`(${invite.guild.id})\``, value: `**${invite.guild.name}** (${invite.guild.id})`,
inline: true, inline: true,
}, },
{ {
name: "Channel", name: "Channel",
value: `**${invite.channel.name}** \`(${invite.channel.id})\``, value: `**${invite.channel.name}** (${invite.channel.id})`,
inline: true, inline: true,
}, },
{ {
@ -100,7 +96,7 @@ lookupinvite.callback = async function (msg, line) {
expires, expires,
{ {
name: "Member Count", name: "Member Count",
value: `${Icons.online}${invite.approximate_presence_count} online\u3000\u3000${Icons.offline}${invite.approximate_member_count} members`, value: `${Icons.online}${invite.approximate_presence_count} online${Icons.blank}${Icons.blank}${Icons.offline}${invite.approximate_member_count} members`,
inline: false, inline: false,
}, },
inviter, inviter,
@ -185,13 +181,7 @@ lookupinvite.callback = async function (msg, line) {
expires, expires,
invite.channel.name != null && { invite.channel.name != null && {
name: "Recipients", name: "Recipients",
value: invite.channel.recipients value: invite.channel.recipients.map((member) => member.username).join(", "),
.map((member) =>
member.global_name
? `**${member.global_name}** (${formatUsername(member)})`
: `**${formatUsername(member)}**`
)
.join("\n"),
inline: false, inline: false,
}, },
inviter, inviter,