bits, if present, means the user used this amount of cheer/bits. All instances of /(^|\s)cheer\d+(\s|$)/ should be replaced with the appropriate emote: static-cdn.jtvnw.net/bits/THEME/TYPE/COLOR/SIZE, where
THEME is light or dark
TYPE is animated or static
COLOR is red for >= 10000 bits, blue for >= 5000, green for >= 1000, purple for >= 100, or otherwise gray
SIZE is a digit between 1 and 4.
This no longer works with the new cheermotes. Any idea how I could match the new cheermotes with a pattern? It would be even better if the bits tag itself contained the cheermote ID with location, the same as standard Twitch emotes.
What @3ventic said. Also, I’m shipping a docs update to add the RegEx. Still have to get the endpoint above documented. Here are the RegEx from the docs update: