mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
fixed an issue where external emotes would count towards the max emote limit
This commit is contained in:
parent
38647087e0
commit
23992bd213
1 changed files with 8 additions and 2 deletions
|
@ -129,8 +129,14 @@ function getGuildCandidates(data: Data) {
|
|||
const { emojis } = EmojiStore.getGuilds()[g.id];
|
||||
|
||||
let count = 0;
|
||||
for (const emoji of emojis)
|
||||
if (emoji.animated === isAnimated) count++;
|
||||
for (const emoji of emojis) {
|
||||
if (emoji.animated === isAnimated) {
|
||||
count++;
|
||||
}
|
||||
if (emoji.managed === true) {
|
||||
count--; // twitch emojis do not count towards the limit
|
||||
}
|
||||
}
|
||||
return count < emojiSlots;
|
||||
}).sort((a, b) => a.name.localeCompare(b.name));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue