mezon-js 2.8.38 → 2.8.39

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/api.gen.ts CHANGED
@@ -532,6 +532,8 @@ export interface ApiChannelMessage {
532
532
  username?: string;
533
533
  // channel mode
534
534
  mode?: number;
535
+ // hide editted
536
+ hideEditted?: boolean;
535
537
  }
536
538
 
537
539
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -304,6 +304,7 @@ export interface ApiChannelMessage {
304
304
  update_time_ms?: number;
305
305
  username?: string;
306
306
  mode?: number;
307
+ hideEditted?: boolean;
307
308
  }
308
309
  /** */
309
310
  export interface ApiChannelMessageHeader {
@@ -5015,9 +5015,9 @@ var _DefaultSocket = class _DefaultSocket {
5015
5015
  unfollowUsers(user_ids) {
5016
5016
  return this.send({ status_unfollow: { user_ids } });
5017
5017
  }
5018
- updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, showEditted) {
5018
+ updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, hideEditted) {
5019
5019
  return __async(this, null, function* () {
5020
- const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, showEditted } });
5020
+ const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, hideEditted } });
5021
5021
  return response.channel_message_ack;
5022
5022
  });
5023
5023
  }
@@ -4986,9 +4986,9 @@ var _DefaultSocket = class _DefaultSocket {
4986
4986
  unfollowUsers(user_ids) {
4987
4987
  return this.send({ status_unfollow: { user_ids } });
4988
4988
  }
4989
- updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, showEditted) {
4989
+ updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, hideEditted) {
4990
4990
  return __async(this, null, function* () {
4991
- const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, showEditted } });
4991
+ const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, hideEditted } });
4992
4992
  return response.channel_message_ack;
4993
4993
  });
4994
4994
  }
package/dist/socket.d.ts CHANGED
@@ -607,7 +607,7 @@ export declare class DefaultSocket implements Socket {
607
607
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
608
608
  sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
609
609
  unfollowUsers(user_ids: string[]): Promise<void>;
610
- updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean): Promise<ChannelMessageAck>;
610
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
611
611
  updateStatus(status?: string): Promise<void>;
612
612
  writeChatMessage(clan_id: string, channel_id: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
613
613
  writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.38",
3
+ "version": "2.8.39",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1301,8 +1301,8 @@ export class DefaultSocket implements Socket {
1301
1301
  return this.send({status_unfollow: {user_ids: user_ids}});
1302
1302
  }
1303
1303
 
1304
- async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean): Promise<ChannelMessageAck> {
1305
- const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, showEditted: showEditted}});
1304
+ async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck> {
1305
+ const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, hideEditted: hideEditted}});
1306
1306
  return response.channel_message_ack;
1307
1307
  }
1308
1308