Skip to main content

ChatMessage

Represents a message in a chat.

Properties

channel

Retrieves the channel in which the message was sent.

Syntax: get channel()

Returns: string


content

Retrieves the content of this message. This can be any JSON-serializable object or value.

Syntax: get content()

Returns: string


id

Retrieves the id of this message.

Syntax: get id()

Returns: string


member

Retrieves the member which sent this message.

Syntax: get member()

Returns: ChatMember


meta

Retrieves any metadata associated to this message.

Syntax: get meta()

Returns: any


publishedAt

Retrieves the date and time at which this message was published.

Syntax: get publishedAt()

Returns: Date