Message

message

interface Message {
  activity?: Activity;
  channelId: string;
  content: MessageContent;
  messageId: string;
  timestamp: Date;
  type: 'message' | 'activity';
  userId: string;
}

index

Properties

activity ?

activity message if message type is activity

Activity

channelId

channel id

string

content

message content

MessageContent

messageId

message id

string

timestamp

time sent

Date

type

message type 'activity' | 'message'

"message" | "activity"

userId

sender

string