Vendicated / Vencord

The cutest Discord client mod
https://vencord.dev
GNU General Public License v3.0
9.04k stars 1.28k forks source link

NoServerEmojis: fix plugin checking for non-existing property #2835

Closed maddie480 closed 2 months ago

maddie480 commented 2 months ago

The plugin seems to have completely stopped working. Looks like there's no type property in the emojis anymore: oops I'm blind it's just a number instead

image

so, emoji.type !== "GUILD_EMOJI" is always true, and no emoji end up being skipped because they're all considered unicode emojis :sweat_smile:

Vendicated commented 2 months ago

it's just an enum now. look at fakenitro image

maddie480 commented 2 months ago

I didn't even see the property, whoops

maddie480 commented 2 months ago

okay I updated it so that I just replace the string enum value "GUILD_EMOJI" with the corresponding int value 1 :sweat_smile: