DirectMessage
A private direct-message conversation — one-on-one or a small group
Required scopes: read:chats, write:chats (any one)
DirectMessageImplements
Fields
When the viewer bookmarked this conversation, or null when it is not bookmarked
ID of the object.
True for group chats (more than two participants)
When the most recent message was sent
The most recent message in the conversation
Messages in this conversation, newest first. System messages (renames, member changes) are excluded unless includeSystemMessages is true. Each cursor names a message, so paging from it continues at that message while messages arrive or are deleted.
Returns the elements in the list that come after the specified cursor.
Center the page on this message — resource ID or GlobalID: about half the page is newer than it, then the message itself, then older ones; a side with fewer messages lends its share to the other. Takes first only, not after, before, or last. The message must be visible in this list, so a system message needs includeSystemMessages.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Include system lifecycle messages (renames, member adds and removes). Defaults to false.
Returns the last n elements from the list.
Members of the conversation
Resource ID for this object, for interop with the Admin API.
Display title — the group name or member names for direct messages, the space title for space chats, or a preview of the parent message for threads
Number of messages the viewer has not read in this conversation