ChatMessage
Represents a message in a chat.
Constructors
constructor
• new ChatMessage(payload
)
Parameters
Name | Type |
---|---|
payload | ChatMessage |
Accessors
channel
• get
channel(): string
The channel in which this message was sent.
Returns
string
content
• get
content(): any
The content of this message. This can be any JSON-serializable object or value.
Returns
string
id
• get
id(): string
The id of this message.
Returns
string
member
• get
member(): ChatMember
The member which sent this message.
Returns
meta
• get
meta(): any
Any metadata associated to this message.
Returns
any
publishedAt
• get
publishedAt(): Date
The date and time at which this message was published.
Returns
Date