TwurpleAuthenticationGetting dataExamplesFAQMigration

fillTextPositions

Definition

fillTextPositions(text, otherPositions)

Add text parts to the given list of message parts for all the text that's unaccounted for.

ParameterTypeRequiredDefaultDescription
textstringnone

The message text.

otherPositions
ParsedMessagePart

A part of a parsed message.

Aliased type: ParsedMessageTextPart | ParsedMessageCheerPart | ParsedMessageEmotePart

[]
none

The parsed non-text parts of the message.

Return type: ParsedMessagePart[]