Type Alias TextJSONMessagePart

TextJSONMessagePart: {
    text: string;
    type?:
        | "text"
        | "entrance_name"
        | "player_id"
        | "player_name";
}

A textual node containing plaintext metadata.

Type declaration

  • Readonlytext: string

    Used to supply text data for this node.

  • Optional Readonlytype?:
        | "text"
        | "entrance_name"
        | "player_id"
        | "player_name"

    Used to denote the intent of the message part.

    If type is omitted, it should be treated as the text type.

JSONMessagePart for all possible message part node subtypes.