mezon-js 2.7.86 → 2.7.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -4862,17 +4862,14 @@ var _DefaultSocket = class _DefaultSocket {
4862
4862
  return response.clan_join;
4863
4863
  });
4864
4864
  }
4865
- joinChat(clan_id, channel_id, mode, type, persistence, hidden) {
4865
+ joinChat(clan_id, channel_id, mode) {
4866
4866
  return __async(this, null, function* () {
4867
4867
  const response = yield this.send(
4868
4868
  {
4869
4869
  channel_join: {
4870
4870
  clan_id,
4871
4871
  channel_id,
4872
- mode,
4873
- type,
4874
- persistence,
4875
- hidden
4872
+ mode
4876
4873
  }
4877
4874
  }
4878
4875
  );
@@ -4833,17 +4833,14 @@ var _DefaultSocket = class _DefaultSocket {
4833
4833
  return response.clan_join;
4834
4834
  });
4835
4835
  }
4836
- joinChat(clan_id, channel_id, mode, type, persistence, hidden) {
4836
+ joinChat(clan_id, channel_id, mode) {
4837
4837
  return __async(this, null, function* () {
4838
4838
  const response = yield this.send(
4839
4839
  {
4840
4840
  channel_join: {
4841
4841
  clan_id,
4842
4842
  channel_id,
4843
- mode,
4844
- type,
4845
- persistence,
4846
- hidden
4843
+ mode
4847
4844
  }
4848
4845
  }
4849
4846
  );
package/dist/socket.d.ts CHANGED
@@ -413,7 +413,7 @@ export interface Socket {
413
413
  /** Join clan chat */
414
414
  joinClanChat(clan_id: string): Promise<ClanJoin>;
415
415
  /** Join a chat channel on the server. */
416
- joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
416
+ joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel>;
417
417
  /** Leave a chat channel on the server. */
418
418
  leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
419
419
  /** Remove a chat message from a chat channel on the server. */
@@ -536,7 +536,7 @@ export declare class DefaultSocket implements Socket {
536
536
  send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
537
537
  followUsers(userIds: string[]): Promise<Status>;
538
538
  joinClanChat(clan_id: string): Promise<ClanJoin>;
539
- joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
539
+ joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel>;
540
540
  leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
541
541
  removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
542
542
  removePartyMember(party_id: string, member: Presence): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.86",
3
+ "version": "2.7.87",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -572,7 +572,7 @@ export interface Socket {
572
572
  joinClanChat(clan_id: string) : Promise<ClanJoin>;
573
573
 
574
574
  /** Join a chat channel on the server. */
575
- joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean) : Promise<Channel>;
575
+ joinChat(clan_id: string, channel_id: string, mode: number) : Promise<Channel>;
576
576
 
577
577
  /** Leave a chat channel on the server. */
578
578
  leaveChat(clan_id: string, channel_id: string, mode: number) : Promise<void>;
@@ -1057,16 +1057,13 @@ export class DefaultSocket implements Socket {
1057
1057
  return response.clan_join;
1058
1058
  }
1059
1059
 
1060
- async joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel> {
1060
+ async joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel> {
1061
1061
 
1062
1062
  const response = await this.send({
1063
1063
  channel_join: {
1064
1064
  clan_id: clan_id,
1065
1065
  channel_id: channel_id,
1066
1066
  mode: mode,
1067
- type: type,
1068
- persistence: persistence,
1069
- hidden: hidden
1070
1067
  }
1071
1068
  }
1072
1069
  );