Marketplace API / Types
ChatMessageViewerState
ObjectThe authenticated user's relationship to a chat message.
type ChatMessageViewerStateFields
| Field | Type | Description |
|---|---|---|
canBanAuthor | Boolean! | Whether the caller can ban the author: the caller holds the MODERATOR role or higher and ranks above the author. False for the caller's own messages and for direct messages. |
canDelete | Boolean! | Whether the caller can delete this message: the caller is the author, or holds chat moderation rights and ranks above the author. A direct message is deletable by its author only. |
isUnread | Boolean! | True when another user posted this message after the caller's read position in its channel or conversation. |
reactions | [Reaction!]! | The emoji the caller put on this message. Empty when the message is deleted. |