TwurpleAuthenticationGetting dataExamplesFAQMigration

parseEmotePositions

Definition

parseEmotePositions(text, emoteOffsets)

Transforms the parts of the given text that are marked as emotes.

ParameterTypeRequiredDefaultDescription
textstringnone

The message text.

emoteOffsetsMap<string, string[]>none

The emote offsets. An emote name maps to a list of text ranges.

Return type: ParsedMessageEmotePart[]