messageApproved
When the Q&A mode or pre-approved mode is on and a message has been approved by moderator or admin this event is triggered
JavaScript
frame1.on("messageApproved", (message) => {
console.log("messageApproved", message);
});
Properties
Properties | Description | Type |
---|---|---|
_id | id of the message | String |
likes | array of likes | Array |
created | when the chat message was created | String |
chatRoom | chat room id | String |
message | message that was sent | String |
user | user id | String |
Customer | customer id | String |
JSON Sample Response
{
"_id": "632a1497f0357f1c648791ec",
"likes": [],
"created": "2022-09-20T19:29:27.319Z",
"chatRoom": "631794a83671700c713b1ce6",
"message": "hjksdh",
"user": "63233015c3aa3508a4c8fc34",
"customer": "631794a83671700c713b1ce5",
"__v": 0
}