TIMProfileModifySelfUserProfile
Introduction
Modify self user profile
Parameter details
Returned template
Promise<commonResult<string>>
{
    code: TIMResult | TIMErrCode;
    desc?: string | undefined;
    json_param?: string | undefined;
    json_params?: string | undefined; 
    user_data?: string | undefined;
}
Return value details
| name | type | description | 
| code | TIMResult | TIMErrCode | Request result: Error codes. 0 means success. | 
| desc | string | undefined | The description of the error. It will  be empty if success. | 
| json_param | string | undefined | Return value of calling API | 
| json_params | string | undefined | Return value of calling API. Compatible field, which is returned in some cases. | 
| user_data | string | undefined | ImSDK is responsible for transporting user-defined data without any processing | 
Code example
import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { UserProfileItem, TIMProfileModifySelfUserProfileParam, UserProfileCustemStringInfo } from "im_electron_sdk/dist/interfaces";
let nickname = "";
let faceUrl = "";
let signature = "";
let customInfo: UserProfileCustemStringInfo = {
    user_profile_custom_string_info_key: "",     
    user_profile_custom_string_info_value: ""    
}
let profileParam: UserProfileItem = {
    user_profile_item_nick_name: nickname,  
    user_profile_item_gender: 0,   
    user_profile_item_face_url: faceUrl,   
    user_profile_item_self_signature: signature,   
    user_profile_item_add_permission: 0,   
    user_profile_item_location: 0,   
    user_profile_item_language: 0,    
    user_profile_item_birthday: 0,   
    user_profile_item_level: 0,   
    user_profile_item_role: 0,   
    user_profile_item_custom_string_array: [customInfo],   
}
let param: TIMProfileModifySelfUserProfileParam = {
    json_modify_self_user_profile_param: profileParam, 
    user_data: "",  
}
let { code } = await timRenderInstance.TIMProfileModifySelfUserProfile(param)
if (code == 0) {
    
}