Class Conversation

The details of a single conversation.

Implements

Constructors

Properties

avatarUrl?: string

URL to the conversation avatar (for group DMs).

hasMore: boolean

Whether there are more messages to load.

id: string

The unique identifier of the conversation.

lastActivityAt: string

The timestamp of the last activity (ISO 8601 format).

lastMessageId?: string

The ID of the last message.

messages: DirectMessage[]

Array of messages in this conversation.

muted: boolean

Whether the conversation is muted.

name?: string

The name of the conversation (for group DMs).

notificationsDisabled: boolean

Whether notifications are disabled.

participants: string[]

Array of participant user IDs.

trusted: boolean

Whether the conversation is trusted.

type: "ONE_TO_ONE" | "GROUP_DM"

The type of conversation (ONE_TO_ONE or GROUP_DM).

Accessors

Methods

  • Get the other participant's ID (only for one-to-one conversations)

    Parameters

    • currentUserId: string

    Returns undefined | string