Skip to main content

ChannelMessageEditedEvent

ChannelMessageEditedEvent = object

Event data emitted when a message's content is modified.

Properties

channelId

channelId: ChannelGuid

The ID of the channel containing the message.


communityId?

optional communityId: CommunityGuid


deletedAt?

optional deletedAt: Date

Timestamp when the message was deleted. Undefined for active messages.


editedAt?

optional editedAt: Date

Timestamp when the message was last edited.


id

id: MessageGuid

The unique identifier of the edited message.


messageContent

messageContent: string

The updated text content of the message.


messageType

messageType: MessageType

The type of message. Use the MessageType enum values: UserMessage (1) for user-created messages or System (2) for system-generated messages.


messageUris?

optional messageUris: MessageUri[]

Optional array of MessageUri objects containing URIs and attachment metadata.


parentMessages?

optional parentMessages: ParentMessage[]

Optional array of ParentMessage objects representing messages this message is replying to.


pinnedAt?

optional pinnedAt: Date

Timestamp when the message was pinned. Undefined if not pinned.


reactions?

optional reactions: MessageReaction[]

Optional array of MessageReaction objects representing reactions on the message.


referenceMaps?

optional referenceMaps: MessageReferenceMaps

Optional MessageReferenceMaps object containing resolved references for users, channels, roles, and assets mentioned in the message.


userId

userId: UserGuid

The ID of the user who created the message.