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.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);

View file

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