Interface IConversation

The details of a single conversation.

interface IConversation {
    avatarUrl?: string;
    hasMore: boolean;
    id: string;
    lastActivityAt: string;
    lastMessageId?: string;
    messages: IDirectMessage[];
    muted: boolean;
    name?: string;
    notificationsDisabled: boolean;
    participants: string[];
    trusted: boolean;
    type: "ONE_TO_ONE" | "GROUP_DM";
}

Implemented by

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: IDirectMessage[]

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).