mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
fixed a bug where external emotes counted towards the limit (twitch)
This commit is contained in:
parent
c5d03bab3b
commit
bc64dd400a
1 changed files with 9 additions and 3 deletions
|
@ -129,9 +129,15 @@ function getGuildCandidates(data: Data) {
|
||||||
const { emojis } = EmojiStore.getGuilds()[g.id];
|
const { emojis } = EmojiStore.getGuilds()[g.id];
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
for (const emoji of emojis)
|
for (const emoji of emojis) {
|
||||||
if (emoji.animated === isAnimated) count++;
|
if (emoji.animated === isAnimated) {
|
||||||
return count < emojiSlots;
|
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));
|
}).sort((a, b) => a.name.localeCompare(b.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue