temotes icon indicating copy to clipboard operation
temotes copied to clipboard

Added provider emote id in returned emote json

Open matyjb opened this issue 10 months ago • 2 comments

Issue: Creating unique key or filename for each of the emote (for emotes like "Harambe" it's ok, but what for ":)" where ":" character is invalid for a filename)

Possible solution: Parsing the unique key from the URL of the emote. However, it's time-consuming and what if the URL changes?

Simple solution: I propose in this pull request just passing emotes ID returned by twitch/7tv/bttv/ffz to the Emote object, so it can be returned by tEmotes API. This way, unique keys (or file names) for each emotes can be easily created by combining its ID and the provider's name (for example: 60ae7316f7c927fad14e6ca2_7tv.webp)

I hope this will be accepted as these IDs can come in handy for anyone using the tEmotes API :)

matyjb avatar Sep 14 '23 16:09 matyjb