mezon-js 2.13.48 → 2.13.49

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.
@@ -8231,7 +8231,7 @@ var _DefaultSocket = class _DefaultSocket {
8231
8231
  return response.ephemeral_message_send;
8232
8232
  });
8233
8233
  }
8234
- writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
8234
+ writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
8235
8235
  return __async(this, null, function* () {
8236
8236
  const response = yield this.send({
8237
8237
  ephemeral_message_send: {
@@ -8249,7 +8249,8 @@ var _DefaultSocket = class _DefaultSocket {
8249
8249
  mention_everyone,
8250
8250
  avatar,
8251
8251
  code,
8252
- topic_id
8252
+ topic_id,
8253
+ id
8253
8254
  }
8254
8255
  }
8255
8256
  });
@@ -8197,7 +8197,7 @@ var _DefaultSocket = class _DefaultSocket {
8197
8197
  return response.ephemeral_message_send;
8198
8198
  });
8199
8199
  }
8200
- writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
8200
+ writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
8201
8201
  return __async(this, null, function* () {
8202
8202
  const response = yield this.send({
8203
8203
  ephemeral_message_send: {
@@ -8215,7 +8215,8 @@ var _DefaultSocket = class _DefaultSocket {
8215
8215
  mention_everyone,
8216
8216
  avatar,
8217
8217
  code,
8218
- topic_id
8218
+ topic_id,
8219
+ id
8219
8220
  }
8220
8221
  }
8221
8222
  });
package/dist/socket.d.ts CHANGED
@@ -946,11 +946,11 @@ export interface Socket {
946
946
  /** Update the status for the current user online. */
947
947
  updateStatus(status?: string): Promise<void>;
948
948
  /** Send a chat message to a chat channel on the server. */
949
- writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
949
+ writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
950
950
  /** Send a chat message to a chat channel on the server. */
951
951
  writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
952
952
  /** Send a quick menu event to a chat channel on the server. */
953
- writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
953
+ writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string, id?: string): Promise<QuickMenuEvent>;
954
954
  /** Send message typing */
955
955
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
956
956
  /** Send message reaction */
@@ -1173,7 +1173,7 @@ export declare class DefaultSocket implements Socket {
1173
1173
  updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
1174
1174
  updateStatus(status?: string): Promise<void>;
1175
1175
  writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
1176
- writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
1176
+ writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
1177
1177
  writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
1178
1178
  writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string, sender_name?: string): Promise<ApiMessageReaction>;
1179
1179
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.48",
3
+ "version": "2.13.49",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1494,7 +1494,8 @@ export interface Socket {
1494
1494
  mention_everyone?: boolean,
1495
1495
  avatar?: string,
1496
1496
  code?: number,
1497
- topic_id?: string
1497
+ topic_id?: string,
1498
+ id?: string
1498
1499
  ): Promise<ChannelMessageAck>;
1499
1500
 
1500
1501
  /** Send a chat message to a chat channel on the server. */
@@ -1530,7 +1531,8 @@ export interface Socket {
1530
1531
  mention_everyone?: boolean,
1531
1532
  avatar?: string,
1532
1533
  code?: number,
1533
- topic_id?: string
1534
+ topic_id?: string,
1535
+ id?: string
1534
1536
  ): Promise<QuickMenuEvent>;
1535
1537
 
1536
1538
  /** Send message typing */
@@ -2841,7 +2843,8 @@ export class DefaultSocket implements Socket {
2841
2843
  mention_everyone?: Boolean,
2842
2844
  avatar?: string,
2843
2845
  code?: number,
2844
- topic_id?: string
2846
+ topic_id?: string,
2847
+ id?: string
2845
2848
  ): Promise<ChannelMessageAck> {
2846
2849
  const response = await this.send({
2847
2850
  ephemeral_message_send: {
@@ -2860,6 +2863,7 @@ export class DefaultSocket implements Socket {
2860
2863
  avatar: avatar,
2861
2864
  code: code,
2862
2865
  topic_id: topic_id,
2866
+ id: id,
2863
2867
  }
2864
2868
  }
2865
2869
  });