Options
Menu

Class CreatedChatHistoryEntry

Represents the creation of this chat, regardless of type.

Hierarchy

Index

Properties

chatId

chatId: string

The ID of the chat on which this event occurred

eventNumber

eventNumber: number

The unique sequential ID of this event

members

members: DomainUser[]

The members of the chat at the time of creation

name

name: string

The name of the created chat, if specified

timestamp

timestamp: Date

The timestamp at which this event occurred

topic

topic: string

The topic of the created chat, if specified

type

type: string

The type of event. One of Types

user

The user that initiated this event

TYPE

TYPE: string = ChatHistoryEntry.TYPES.CREATED

Object literals

TYPES

TYPES: object

CREATED

CREATED: string = "created"

MESSAGE

MESSAGE: string = "message"

NAME_CHANGED

NAME_CHANGED: string = "name_changed"

TOPIC_CHANGED

TOPIC_CHANGED: string = "topic_changed"

USER_ADDED

USER_ADDED: string = "user_added"

USER_JOINED

USER_JOINED: string = "user_joined"

USER_LEFT

USER_LEFT: string = "user_left"

USER_REMOVED

USER_REMOVED: string = "user_removed"