From 374e1fead12594e6ebdbb112ad3501f6a60f6ffb Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 20 Oct 2023 13:38:23 -0600 Subject: [PATCH] utility.guildinfo: add invite link for widget if valid --- src/modules/utility.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/utility.js b/src/modules/utility.js index 3f3f140..09a50ec 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -2282,6 +2282,12 @@ guildinfo.callback = async function (msg, line) { }; if (invite) { + embed.fields.push({ + name: "Invite", + value: "https://discord.gg/" + guild.instant_invite, + inline: true, + }); + embed.fields.push({ name: "Member Count", value: `<:online:1152111668856361010>${invite.approximate_presence_count} online\t\t<:offline:1152111682886316042>${invite.approximate_member_count} members`,