Moderation

Mute Chat#

To Mute the chat use below method which disables the notification for the chat when the new messages are received or any action on chat.

await SDK.updateMuteNotification(`TO_JID`, `IS_MUTED`);
StatusDescriptionTypeRequired
TO_JIDJID of the To UserJID Stringtrue
IS_MUTEDtrue for muting the chat, false for removingBooleantrue

Get Mute Status#

To determine if a particular user is muted, use the method below. It returns the mute status of the specified user, if the user is muted return 1 else return 0.

await SDK.getMuteStatus(`TO_JID`);
StatusDescriptionTypeRequired
TO_JIDJID of the To UserJID Stringtrue