utility.guildinfo: add invite link for widget if valid
This commit is contained in:
parent
49d2fe849a
commit
374e1fead1
1 changed files with 6 additions and 0 deletions
|
@ -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`,
|
||||||
|
|
Loading…
Reference in a new issue