Browse SDKs · WASM
SDKsWASM

Mute or unmute a group member

Set or clear the mute status of a specified group member.

Copy

Parameters

ParameterTypeRequiredDescription
groupIDstringYesID of the target group.
userIDstringYesUser ID of the target member.
mutedSecondsnumberYesMute duration in seconds. Pass 0 to unmute the member.
await openimsdk.changeGroupMemberMute({
  groupID,
  userID: targetUserID,
  mutedSeconds: 3600,
});

The group owner can mute administrators and regular members, while an administrator can mute only regular members. OpenIMServer performs the final authorization check.

When the Promise resolves, the server has completed the request. Use muteEndTime in the member profile as the authoritative final state instead of calculating it solely from the submitted duration. For handling OnGroupMemberInfoChanged, see List group members.