mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 18:47:20 +00:00
respect .available (almeida-approved code!!)
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
b47db15ad2
commit
947d38c870
1 changed files with 6 additions and 1 deletions
|
@ -205,9 +205,14 @@ export async function getServerInfoEmbed(
|
|||
[GuildPremiumTier.Tier3]: 60,
|
||||
}[restGuild.premiumTier] ?? 0;
|
||||
|
||||
const availableEmojis = restGuild.emojis.cache.filter((e) => e.available);
|
||||
otherStats.push(
|
||||
`Emojis: **${restGuild.emojis.cache.size}** / ${maxEmojis * 2}${
|
||||
`Emojis: **${availableEmojis.size}** / ${maxEmojis * 2}${
|
||||
roleLockedEmojis ? ` (__${roleLockedEmojis} role-locked__)` : ""
|
||||
}${
|
||||
availableEmojis.size < restGuild.emojis.cache.size
|
||||
? ` (__${restGuild.emojis.cache.size - availableEmojis.size} unavailable__)`
|
||||
: ""
|
||||
}`,
|
||||
);
|
||||
otherStats.push(`Stickers: **${restGuild.stickers.cache.size}** / ${maxStickers}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue