markChatroomMemberTempMuted method

Future<NIMResult<void>> markChatroomMemberTempMuted({
  1. required int duration,
  2. required NIMChatroomMemberOptions options,
  3. bool needNotify = false,
})

添加/解除临时禁言聊天室成员

  • duration 禁言时长,单位ms。设置为 0 会取消禁言
  • memberOption 请求参数,包含聊天室id,帐号id以及可选的扩展字段
  • needNotify 是否需要发送广播通知,true:通知,false:不通知

Implementation

Future<NIMResult<void>> markChatroomMemberTempMuted({
  required int duration,
  required NIMChatroomMemberOptions options,
  bool needNotify = false,
}) {
  return _platform.markChatroomMemberTempMuted(
    duration: duration,
    options: options,
    needNotify: needNotify,
  );
}