@tencentcloud/tuiroom-engine-electron 1.7.9 → 1.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -780,6 +780,25 @@ declare class TUIRoomEngine {
780
780
  userId: string;
781
781
  userRole: TUIRole;
782
782
  }): Promise<void>;
783
+ /**
784
+ * 改变用户昵称
785
+ * @param {object} options 改变用户的昵称
786
+ * @param {string} options.userId 用户 Id
787
+ * @param {string} options.nameCard 用户昵称
788
+ * @returns {Promise<void>}
789
+ *
790
+ * @example
791
+ * const roomEngine = new TUIRoomEngine();
792
+ * // 将用户 user_1234 的昵称设置为 "newName"
793
+ * await roomEngine.changeUserNameCard({
794
+ * userId: 'user_1234',
795
+ * nameCard: 'newName',
796
+ * });
797
+ */
798
+ changeUserNameCard(options: {
799
+ userId: string;
800
+ nameCard: string;
801
+ }): Promise<void>;
783
802
  /**
784
803
  * 将用户踢出房间,仅主持人和管理员可调用该接口
785
804
  * @param {object} options