From 4d1924b1ec800e3b27a3f7f510741a998051fb1d Mon Sep 17 00:00:00 2001 From: Dark <7890309+DarkView@users.noreply.github.com> Date: Sun, 4 Jul 2021 17:48:26 +0200 Subject: [PATCH] Add sticker count to server info embed Still need to wait on DJS update for actual sticker count --- .../plugins/Utility/functions/getServerInfoEmbed.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts index 960a3d0c..c413aff9 100644 --- a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts +++ b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts @@ -185,9 +185,19 @@ export async function getServerInfoEmbed( 2: 150, 3: 250, }[restGuild.premiumTier] || 50; + const maxStickers = + { + 0: 0, + 1: 15, + 2: 30, + 3: 60, + }[restGuild.premiumTier] || 0; + otherStats.push(`Emojis: **${restGuild.emojis.cache.size}** / ${maxEmojis * 2}`); + otherStats.push(`Stickers: ? / ${maxStickers}`); // Wait on DJS: **${restGuild.stickers.cache.size}** } else { otherStats.push(`Emojis: **${guildPreview!.emojis.size}**`); + // otherStats.push(`Stickers: **${guildPreview!.stickers.size}**`); Wait on DJS } if (thisServer) {