@cbnsndwch/zero-sources

IUserMessage interface

Home > @cbnsndwch/zrocket-contracts > IUserMessage

IUserMessage interface

Signature:

interface IUserMessage extends IMessageBase

Extends: IMessageBase

Properties

Property

Modifiers

Type

Description

attachments?

MessageAttachment[]

(Optional) Attachments of the message, if any

contents

SerializedEditorState

The message contents, in Lexical JSON format

groupable?

boolean

(Optional) Whether the message can be grouped with other messages from the same user

pinned?

boolean

(Optional) Whether the message is pinned in the room

pinnedAt?

Date

(Optional) If the messages is pinned, the date and time it was pinned

pinnedBy?

IUserSummary

(Optional) If the messages is pinned, the user who pinned it

reactions?

Record<string, IMessageReaction>

(Optional) A map of reaction emojis to the list of user ids that have reacted with that emoji

repliedBy?

string[]

(Optional) List of user ids that have replied to this message

sender

Required<IUserSummary> & Partial<IHasName>

The user who sent the message

starredBy?

string[]

(Optional) List of user ids that have reacted to this message

unread?

boolean

(Optional) Whether the message is has not been viewed by the users in the room

How was this page?