mezon-js 2.8.58 → 2.8.59

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.
@@ -5038,9 +5038,9 @@ var _DefaultSocket = class _DefaultSocket {
5038
5038
  return response.message_typing_event;
5039
5039
  });
5040
5040
  }
5041
- writeLastSeenMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds) {
5041
+ writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
5042
5042
  return __async(this, null, function* () {
5043
- const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, is_public, message_id, timestamp_seconds } });
5043
+ const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
5044
5044
  return response.last_seen_message_event;
5045
5045
  });
5046
5046
  }
@@ -5009,9 +5009,9 @@ var _DefaultSocket = class _DefaultSocket {
5009
5009
  return response.message_typing_event;
5010
5010
  });
5011
5011
  }
5012
- writeLastSeenMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds) {
5012
+ writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
5013
5013
  return __async(this, null, function* () {
5014
- const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, is_public, message_id, timestamp_seconds } });
5014
+ const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
5015
5015
  return response.last_seen_message_event;
5016
5016
  });
5017
5017
  }
package/dist/socket.d.ts CHANGED
@@ -523,7 +523,7 @@ export interface Socket {
523
523
  /** Send message reaction */
524
524
  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): Promise<ApiMessageReaction>;
525
525
  /** Send last seen message */
526
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
526
+ writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
527
527
  /** Send last pin message */
528
528
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
529
529
  /** Send custom user status */
@@ -670,7 +670,7 @@ export declare class DefaultSocket implements Socket {
670
670
  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): Promise<ChannelMessageAck>;
671
671
  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): Promise<ApiMessageReaction>;
672
672
  writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
673
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
673
+ writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
674
674
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
675
675
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
676
676
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.58",
3
+ "version": "2.8.59",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -781,7 +781,7 @@ export interface Socket {
781
781
  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) : Promise<ApiMessageReaction>;
782
782
 
783
783
  /** Send last seen message */
784
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
784
+ writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
785
785
 
786
786
  /** Send last pin message */
787
787
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
@@ -1445,8 +1445,8 @@ export class DefaultSocket implements Socket {
1445
1445
  return response.message_typing_event
1446
1446
  }
1447
1447
 
1448
- async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
1449
- const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, is_public: is_public, message_id: message_id, timestamp_seconds: timestamp_seconds}});
1448
+ async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
1449
+ const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp_seconds: timestamp_seconds}});
1450
1450
  return response.last_seen_message_event
1451
1451
  }
1452
1452