Add sticker count to server info embed

Still need to wait on DJS update for actual sticker count
This commit is contained in:
Dark 2021-07-04 17:48:26 +02:00
parent 5e73d380c5
commit 4d1924b1ec
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -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) {