mezon-js 2.8.68 → 2.8.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -5175,9 +5175,9 @@ var _DefaultSocket = class _DefaultSocket {
5175
5175
  return response.message_reaction_event;
5176
5176
  });
5177
5177
  }
5178
- writeMessageTyping(clan_id, channel_id, mode) {
5178
+ writeMessageTyping(clan_id, channel_id, mode, is_public) {
5179
5179
  return __async(this, null, function* () {
5180
- const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
5180
+ const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
5181
5181
  return response.message_typing_event;
5182
5182
  });
5183
5183
  }
@@ -5146,9 +5146,9 @@ var _DefaultSocket = class _DefaultSocket {
5146
5146
  return response.message_reaction_event;
5147
5147
  });
5148
5148
  }
5149
- writeMessageTyping(clan_id, channel_id, mode) {
5149
+ writeMessageTyping(clan_id, channel_id, mode, is_public) {
5150
5150
  return __async(this, null, function* () {
5151
- const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
5151
+ const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
5152
5152
  return response.message_typing_event;
5153
5153
  });
5154
5154
  }
package/dist/socket.d.ts CHANGED
@@ -671,7 +671,7 @@ export declare class DefaultSocket implements Socket {
671
671
  updateStatus(status?: string): Promise<void>;
672
672
  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>;
673
673
  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>;
674
- writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
674
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
675
675
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
676
676
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
677
677
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.68",
3
+ "version": "2.8.69",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1445,8 +1445,8 @@ export class DefaultSocket implements Socket {
1445
1445
  return response.message_reaction_event
1446
1446
  }
1447
1447
 
1448
- async writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent> {
1449
- const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode}});
1448
+ async writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent> {
1449
+ const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode, is_public: is_public}});
1450
1450
  return response.message_typing_event
1451
1451
  }
1452
1452