Instead of the parseEmotes and parseBadges functions returning their parsing results based on predefined formats, multiple chain functions shall be added to return different formats.
The following methods will be responsible for returning the internal parsed formats - the ones that are currently returned by default:
parseEmotes(...).toWords()
parseBadges(...).toBasicArray()
The following methods shall be implemented to return different formats for user convenience:
Instead of the
parseEmotes
andparseBadges
functions returning their parsing results based on predefined formats, multiple chain functions shall be added to return different formats.The following methods will be responsible for returning the internal parsed formats - the ones that are currently returned by default:
parseEmotes(...).toWords()
parseBadges(...).toBasicArray()
The following methods shall be implemented to return different formats for user convenience:
Method:
Description: Returns a string with the original message and emote codes converted to
<img>
Input:
Hi HeyGuys I'm an example message! popCat
Output:
Method:
Description: Returns a string with the user badges converted to
<img>
Output:
Method:
Description: Returns a simplified version of the badges array, with only the image URLs in all sizes
Output: