mezon-js 2.11.11 → 2.11.13

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/dist/socket.d.ts CHANGED
@@ -750,7 +750,7 @@ export interface Socket {
750
750
  /** Send message typing */
751
751
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
752
752
  /** Send message reaction */
753
- 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): Promise<ApiMessageReaction>;
753
+ 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): Promise<ApiMessageReaction>;
754
754
  /** Send last seen message */
755
755
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
756
756
  /** Send last pin message */
@@ -951,7 +951,7 @@ export declare class DefaultSocket implements Socket {
951
951
  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): Promise<ChannelMessageAck>;
952
952
  updateStatus(status?: string): Promise<void>;
953
953
  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>;
954
- 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): Promise<ApiMessageReaction>;
954
+ 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): Promise<ApiMessageReaction>;
955
955
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
956
956
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
957
957
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.11.11",
4
+ "version": "2.11.13",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1128,7 +1128,8 @@ export interface Socket {
1128
1128
  count: number,
1129
1129
  message_sender_id: string,
1130
1130
  action_delete: boolean,
1131
- topic_id?: string
1131
+ topic_id?: string,
1132
+ emoji_recent_id?: string
1132
1133
  ): Promise<ApiMessageReaction>;
1133
1134
 
1134
1135
  /** Send last seen message */
@@ -2334,7 +2335,8 @@ export class DefaultSocket implements Socket {
2334
2335
  count: number,
2335
2336
  message_sender_id: string,
2336
2337
  action_delete: boolean,
2337
- topic_id?: string
2338
+ topic_id?: string,
2339
+ emoji_recent_id?: string
2338
2340
  ): Promise<ApiMessageReaction> {
2339
2341
  const response = await this.send({
2340
2342
  message_reaction_event: {
@@ -2350,6 +2352,7 @@ export class DefaultSocket implements Socket {
2350
2352
  message_sender_id: message_sender_id,
2351
2353
  action: action_delete,
2352
2354
  topic_id: topic_id,
2355
+ emoji_recent_id: emoji_recent_id
2353
2356
  },
2354
2357
  });
2355
2358
  return response.message_reaction_event;