Class DirectMessage

The details of a single direct message.

Implements

Constructors

Properties

conversationId: string

The ID of the conversation this message belongs to.

createdAt: string

The timestamp when the message was sent (ISO 8601 format).

editCount?: number

Number of times the message has been edited.

id: string

The unique identifier of the message.

mediaUrls?: string[]

Array of media URLs attached to the message.

read?: boolean

Whether the message has been read.

recipientId?: string

The ID of the user who received the message (for one-to-one conversations).

senderId: string

The ID of the user who sent the message.

text: string

The text content of the message.

Accessors

Methods