Add start and end values for emojis in the API
Emotes with the type "twitch" has the attributes 'start' and 'end' that specifies where in the raw text it starts and ends.
But emotes with the type "emoji" lacks these values. The type "emoji" also lacks the exact character as text as well. The emoji "🐇" has the values name and id both being "1f407" and none being "🐇".
My goal is to go through from the end to the start of the text and replace each entry. Apparently emotes of the type twitch are also sorted before emotes of the type emoji, which means I can't go through the emotes in the reverse order and I first have to sort the list.
So three changes in total:
- Provide start/end values for all emotes, regardless if it's twitch or emoji.
- Provide exact emoji-character for emoji, so "🐇" for emoji 🐇.
- Provide the list of emotes in the order they appear in the text and don't sort them based on type.