mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
Update src/plugins/emoteCloner/index.tsx
Co-authored-by: ryan-0324 <77452312+ryan-0324@users.noreply.github.com>
This commit is contained in:
parent
521647b4e1
commit
e24d5d3f93
1 changed files with 2 additions and 8 deletions
|
@ -129,15 +129,9 @@ 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) {
|
if (emoji.animated === isAnimated && !emoji.managed)
|
||||||
count++;
|
count++;
|
||||||
if (emoji.managed === true) {
|
|
||||||
count--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
return count < emojiSlots;
|
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