luimu64 / nitro-spoof

Nitro emote plugin for goosemod
10 stars 3 forks source link

Support Expired Boost emojis #9

Open Delphox opened 2 years ago

Delphox commented 2 years ago

Not sure if there's a straightforward way to do this (since there isn't a normal circumstance an use can use expired emojis), but might be worth looking into.

Right now they show ungreyed on the picker but can't be picked as they still have the emojiItemDisabled-1FvFuF property. They don't show up on search results either. When calling them by their raw code, they trigger the emoji-to-url conversion as normal except when it's a non-animated emoji being used in its home server (cuz they're assumed to be usable without nitro).

If you need a reference, this userscript (which works similar to lith's now-broken plugin) added support to them on this commit, although it still doesn't get around them not showing on search results (which links to the first paragraph, maybe this isn't possible due to how discord works).

If you need a way to test expired boost emojis, you can create them by having a server with 48-ish emojis, then upload multiple emojis to go over the limit all at once. It's a race condition so it may take multiple tries and the faster is your internet upload and the smaller the emojis, the better.

luimu64 commented 2 years ago

I am not really interested in working on this project currently but if you can put together some prototype implementation I can look into it more. I could also just add you to be collaborator at this point.