Skip to main content

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

PropertiesDescriptionType
_idid of the userString
likeslikes arrayArray
createddate and time when the channel message was sentString
useruser idString
channelchannelId where the message was sentString
messagemessageString
JSON Sample Response
{
"_id": "632a3f47f0357f1c648791f5",
"likes": [],
"created": "2022-09-20T22:31:35.551Z",
"user": "63233015c3aa3508a4c8fc34",
"channel": "6325e6bef0357f1c648791a4",
"message": "hi",
"__v": 0
}