mezon-js 2.7.87 → 2.7.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +4 -4
- package/dist/mezon-js.esm.mjs +4 -4
- package/dist/socket.d.ts +4 -4
- package/package.json +1 -1
- package/socket.ts +6 -6
package/dist/mezon-js.cjs.js
CHANGED
@@ -4862,22 +4862,22 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4862
4862
|
return response.clan_join;
|
4863
4863
|
});
|
4864
4864
|
}
|
4865
|
-
joinChat(clan_id, channel_id,
|
4865
|
+
joinChat(clan_id, channel_id, channel_type) {
|
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
|
-
|
4872
|
+
channel_type
|
4873
4873
|
}
|
4874
4874
|
}
|
4875
4875
|
);
|
4876
4876
|
return response.channel;
|
4877
4877
|
});
|
4878
4878
|
}
|
4879
|
-
leaveChat(clan_id, channel_id,
|
4880
|
-
return this.send({ channel_leave: { clan_id, channel_id,
|
4879
|
+
leaveChat(clan_id, channel_id, channel_type) {
|
4880
|
+
return this.send({ channel_leave: { clan_id, channel_id, channel_type } });
|
4881
4881
|
}
|
4882
4882
|
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4883
4883
|
return __async(this, null, function* () {
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4833,22 +4833,22 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4833
4833
|
return response.clan_join;
|
4834
4834
|
});
|
4835
4835
|
}
|
4836
|
-
joinChat(clan_id, channel_id,
|
4836
|
+
joinChat(clan_id, channel_id, channel_type) {
|
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
|
-
|
4843
|
+
channel_type
|
4844
4844
|
}
|
4845
4845
|
}
|
4846
4846
|
);
|
4847
4847
|
return response.channel;
|
4848
4848
|
});
|
4849
4849
|
}
|
4850
|
-
leaveChat(clan_id, channel_id,
|
4851
|
-
return this.send({ channel_leave: { clan_id, channel_id,
|
4850
|
+
leaveChat(clan_id, channel_id, channel_type) {
|
4851
|
+
return this.send({ channel_leave: { clan_id, channel_id, channel_type } });
|
4852
4852
|
}
|
4853
4853
|
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4854
4854
|
return __async(this, null, function* () {
|
package/dist/socket.d.ts
CHANGED
@@ -413,9 +413,9 @@ 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,
|
416
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
|
417
417
|
/** Leave a chat channel on the server. */
|
418
|
-
leaveChat(clan_id: string, channel_id: string,
|
418
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void>;
|
419
419
|
/** Remove a chat message from a chat channel on the server. */
|
420
420
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
421
421
|
/** Execute an RPC function to the server. */
|
@@ -536,8 +536,8 @@ 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,
|
540
|
-
leaveChat(clan_id: string, channel_id: string,
|
539
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
|
540
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: 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>;
|
543
543
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -572,10 +572,10 @@ 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,
|
575
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number) : Promise<Channel>;
|
576
576
|
|
577
577
|
/** Leave a chat channel on the server. */
|
578
|
-
leaveChat(clan_id: string, channel_id: string,
|
578
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number) : Promise<void>;
|
579
579
|
|
580
580
|
/** Remove a chat message from a chat channel on the server. */
|
581
581
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string) : Promise<ChannelMessageAck>;
|
@@ -1057,13 +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,
|
1060
|
+
async joinChat(clan_id: string, channel_id: string, channel_type: 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
|
+
channel_type: channel_type,
|
1067
1067
|
}
|
1068
1068
|
}
|
1069
1069
|
);
|
@@ -1071,8 +1071,8 @@ export class DefaultSocket implements Socket {
|
|
1071
1071
|
return response.channel;
|
1072
1072
|
}
|
1073
1073
|
|
1074
|
-
leaveChat(clan_id: string, channel_id: string,
|
1075
|
-
return this.send({channel_leave: {clan_id: clan_id, channel_id: channel_id,
|
1074
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void> {
|
1075
|
+
return this.send({channel_leave: {clan_id: clan_id, channel_id: channel_id, channel_type: channel_type}});
|
1076
1076
|
}
|
1077
1077
|
|
1078
1078
|
async removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck> {
|