Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
688 B

package events
// SetMessageVisibilityEvent is the event fired when one or more message
// visibilities are changed.
type SetMessageVisibilityEvent struct {
Event
UserMessageEvent
MessageIDs []string
Visible bool
}
// GetBroadcastPayload will return the object to send to all chat users.
func (e *SetMessageVisibilityEvent) GetBroadcastPayload() EventPayload {
return EventPayload{
"type": VisibiltyUpdate,
"id": e.ID,
"timestamp": e.Timestamp,
"ids": e.MessageIDs,
"visible": e.Visible,
}
}
// GetMessageType will return the event type for this message.
func (e *SetMessageVisibilityEvent) GetMessageType() EventType {
return VisibiltyUpdate
}