Marketplace API / Types

ChatMessage

Object

A message in a chat channel or a direct conversation.

type ChatMessage implements Node

Fields

FieldTypeDescription
attachments[ChatMessageAttachment!]!
Listings, orders, livestreams, members, images and link previews, in the order they were attached. Empty when the message is deleted. Leaves out attachments the caller cannot see.
authorUser
The author's public profile. Null when the author's account is not visible.
createdAtDateTime!
When the message was posted.
deletedAtDateTime
When the author or a moderator deleted the message. A deleted message has text null, mentionedUsers empty and replyTo null.
editedAtDateTime
When the author last edited the message. Null when never edited.
idID!
A globally unique ID. Treat this value as an opaque string.
isSuspiciousBoolean!
True for another user's direct message whose author is shadow-banned or whose text has a spam phrase. False for deleted messages, channel messages and the caller's own messages.
locationChatMessageLocation!
Where the message was posted.
mentionedUsers[User!]!
Users mentioned in text, in token order. Empty when deleted. Leaves out users the caller cannot see.
mentionsEveryoneBoolean!
True when the message mentions the whole channel. Always false for a direct message.
reactions[ChatMessageReactionSummary!]!
One entry per emoji on this message, ordered by each emoji's first reaction. Empty when the message is deleted.
replyToChatMessage
The message this one replies to. A deleted target has text null. Null when there is none, when the target is outside the channel's retention window, or when the caller cannot see it.
textString
Sanitised HTML as stored. The allowed tags are b, i, strong, em, a, p, span, table, tr, td, th, ul, li and ol. A mention is <span class="mention">@{userId}</span> and resolves through mentionedUsers. Null when deleted.
viewerChatMessageViewerState
The authenticated user's relationship to this message, or null when unauthenticated.

Returned by