Chat.ChatMessage
Represents a message in a chat.
Constructors
• new ChatMessage(payload
)
Parameters
Name | Type |
---|---|
payload | ChatMessageContract |
Accessors
• get
channel(): string
The channel in which this message was sent
Returns
string
• get
content(): string
The content of this message
Returns
string
• get
id(): string
The id of this message
Returns
string
• get
member(): ChatMemberContract
The member which sent this message
Returns
ChatMemberContract
• get
meta(): any
Any metadata associated to this message
Returns
any
• get
publishedAt(): Date
The date at which this message was published
Returns
Date