Admin API / Types

ChatMessageViewerState

Object

The caller's relation to a chat message. The operations use the same checks.

type ChatMessageViewerState

Fields

FieldTypeDescription
canDeleteBoolean!
Whether deleteChatMessages succeeds for this message: the caller is the author, or the caller ranks above the author at the MODERATOR rank, where an ACTIVE membership with can_moderate_chat counts as MODERATOR. In a livestream, the host and the staff of the host's store can also delete any message, and a joined cohost or an assigned show moderator any message except a USER message of the host. A SOCIAL livestream message is a copied comment: any holder of the show moderation grant or the MODERATOR role can delete it. False for a shadow-banned caller and for a direct message.

Returned by