Chat.ChatMessage

Represents a message in a chat.

Constructors

constructor

new ChatMessage(payload)

Parameters

NameType
payloadChatMessageContract

Accessors

channel

get channel(): string

The channel in which this message was sent

Returns

string


content

get content(): string

The content of this message

Returns

string


id

get id(): string

The id of this message

Returns

string


member

get member(): ChatMemberContract

The member which sent this message

Returns

ChatMemberContract


meta

get meta(): any

Any metadata associated to this message

Returns

any


publishedAt

get publishedAt(): Date

The date at which this message was published

Returns

Date