utility.guildinfo: add invite link for widget if valid

This commit is contained in:
Cynthia Foxwell 2023-10-20 13:38:23 -06:00
parent 49d2fe849a
commit 374e1fead1

View file

@ -2282,6 +2282,12 @@ guildinfo.callback = async function (msg, line) {
}; };
if (invite) { if (invite) {
embed.fields.push({
name: "Invite",
value: "https://discord.gg/" + guild.instant_invite,
inline: true,
});
embed.fields.push({ embed.fields.push({
name: "Member Count", name: "Member Count",
value: `<:online:1152111668856361010>${invite.approximate_presence_count} online\t\t<:offline:1152111682886316042>${invite.approximate_member_count} members`, value: `<:online:1152111668856361010>${invite.approximate_presence_count} online\t\t<:offline:1152111682886316042>${invite.approximate_member_count} members`,