Skip to content

Message

ikcede edited this page Mar 19, 2024 · 1 revision

Class: Message

Wrapper class for chat messages

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Message(text, timestamp): Message

Parameters

Name Type
text string
timestamp null | Date

Returns

Message

Defined in

hinge-wrapper.ts:285

Properties

text

text: string

The text content of the message

Defined in

hinge-wrapper.ts:278


timestamp

timestamp: null | Date

When the message was sent

Defined in

hinge-wrapper.ts:283

Methods

fromRaw

fromRaw(data): Message

Builds a Message from raw object data in matches.json

Note that these are only messages sent by the user as received messages are not downloaded

Parameters

Name Type
data any

Returns

Message

A built Message object

Defined in

hinge-wrapper.ts:299