Module Values.DeleteMessageRequestSource

Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API.

Sourcetype nonrec t = {
  1. roomIdentifier : RoomIdentifier.t;
    (*

    Identifier of the room where the message should be deleted. Currently this must be an ARN.

    *)
  2. id : MessageID.t;
    (*

    ID of the message to be deleted. This is the Id field in the received message (see Message (Subscribe) in the Chat Messaging API).

    *)
  3. reason : Reason.t option;
    (*

    Reason for deleting the message.

    *)
}
Sourceval context_ : string
Sourceval make : ?reason:??? -> roomIdentifier:RoomIdentifier.t -> id:MessageID.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of RoomIdentifier.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t