channelMessageApproved
When Q&A mode or pre moderated chat mode is active and a message inside a channel is approved this event is triggered
JavaScript
frame1.on("channelMessageApproved", (message) => {
console.log("channelMessageApproved", message);
});
Properties
Properties | Description | Type |
---|---|---|
_id | id of the user | String |
likes | likes array | Array |
created | date and time when the channel message was sent | String |
user | user id | String |
channel | channelId where the message was sent | String |
message | message | String |
JSON Sample Response
{
"_id": "632a3f47f0357f1c648791f5",
"likes": [],
"created": "2022-09-20T22:31:35.551Z",
"user": "63233015c3aa3508a4c8fc34",
"channel": "6325e6bef0357f1c648791a4",
"message": "hi",
"__v": 0
}