Definition
parseChatMessage(text, emoteOffsets, cheermoteNames)
Parse a chat message with emotes and optionally cheermotes.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
text | string | none | The message text. | |
emoteOffsets | Map<string, string[]> | none | The emote offsets. An emote name maps to a list of text ranges. | |
cheermoteNames | string[] | none | The names of the cheermotes to find. Will not do cheermote parsing if not given. |
Return type: ParsedMessagePart[]