parseEmotes
Convert a message with emote codes into a message with emote images
Example
API
parseEmotes(...)
Parse emotes in a message and return multiple methods to manage the results.
Returns: Promise<{
toArray()
,
toHTML(...)
}>
.toArray()
Converts parsed message into an array of words and emotes.
Returns: ParsedEmotesMessage
.toHTML(...)
Converts parsed message into a ready-to-use HTML string.
Returns: string
Types
EmotePositions
This is the same type used by TMI.js when returning emote offsets, so you can use it directly when needed.
Object map of:
ParsedEmotesMessage
Array of:
ParsedEmote
ParsedOverlay
ParserOptions
Providers
You can also add any providers you create. See custom emotes/badges guide for more information.
Last updated