mezon-js 2.8.72 → 2.8.74
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +4 -2
- package/dist/mezon-js.esm.mjs +4 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -5092,15 +5092,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5092
5092
|
return response.clan_join;
|
5093
5093
|
});
|
5094
5094
|
}
|
5095
|
-
joinChat(clan_id, channel_id, channel_type, is_public) {
|
5095
|
+
joinChat(clan_id, parent_id, channel_id, channel_type, is_public, is_parent_public) {
|
5096
5096
|
return __async(this, null, function* () {
|
5097
5097
|
const response = yield this.send(
|
5098
5098
|
{
|
5099
5099
|
channel_join: {
|
5100
5100
|
clan_id,
|
5101
|
+
parent_id,
|
5101
5102
|
channel_id,
|
5102
5103
|
channel_type,
|
5103
|
-
is_public
|
5104
|
+
is_public,
|
5105
|
+
is_parent_public
|
5104
5106
|
}
|
5105
5107
|
}
|
5106
5108
|
);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5063,15 +5063,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5063
5063
|
return response.clan_join;
|
5064
5064
|
});
|
5065
5065
|
}
|
5066
|
-
joinChat(clan_id, channel_id, channel_type, is_public) {
|
5066
|
+
joinChat(clan_id, parent_id, channel_id, channel_type, is_public, is_parent_public) {
|
5067
5067
|
return __async(this, null, function* () {
|
5068
5068
|
const response = yield this.send(
|
5069
5069
|
{
|
5070
5070
|
channel_join: {
|
5071
5071
|
clan_id,
|
5072
|
+
parent_id,
|
5072
5073
|
channel_id,
|
5073
5074
|
channel_type,
|
5074
|
-
is_public
|
5075
|
+
is_public,
|
5076
|
+
is_parent_public
|
5075
5077
|
}
|
5076
5078
|
}
|
5077
5079
|
);
|
package/dist/socket.d.ts
CHANGED
@@ -512,7 +512,7 @@ export interface Socket {
|
|
512
512
|
/** Join clan chat */
|
513
513
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
514
514
|
/** Join a chat channel on the server. */
|
515
|
-
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
515
|
+
joinChat(clan_id: string, parent_id: string, channel_id: string, channel_type: number, is_public: boolean, is_parent_public: boolean): Promise<Channel>;
|
516
516
|
/** Leave a chat channel on the server. */
|
517
517
|
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
518
518
|
/** Remove a chat message from a chat channel on the server. */
|
@@ -667,7 +667,7 @@ export declare class DefaultSocket implements Socket {
|
|
667
667
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
|
668
668
|
followUsers(userIds: string[]): Promise<Status>;
|
669
669
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
670
|
-
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
670
|
+
joinChat(clan_id: string, parent_id: string, channel_id: string, channel_type: number, is_public: boolean, is_parent_public: boolean): Promise<Channel>;
|
671
671
|
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
672
672
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string): Promise<ChannelMessageAck>;
|
673
673
|
removePartyMember(party_id: string, member: Presence): Promise<void>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -769,7 +769,7 @@ export interface Socket {
|
|
769
769
|
joinClanChat(clan_id: string) : Promise<ClanJoin>;
|
770
770
|
|
771
771
|
/** Join a chat channel on the server. */
|
772
|
-
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean) : Promise<Channel>;
|
772
|
+
joinChat(clan_id: string, parent_id: string, channel_id: string, channel_type: number, is_public: boolean, is_parent_public: boolean) : Promise<Channel>;
|
773
773
|
|
774
774
|
/** Leave a chat channel on the server. */
|
775
775
|
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean) : Promise<void>;
|
@@ -1377,14 +1377,16 @@ export class DefaultSocket implements Socket {
|
|
1377
1377
|
return response.clan_join;
|
1378
1378
|
}
|
1379
1379
|
|
1380
|
-
async joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel> {
|
1380
|
+
async joinChat(clan_id: string, parent_id: string, channel_id: string, channel_type: number, is_public: boolean, is_parent_public: boolean): Promise<Channel> {
|
1381
1381
|
|
1382
1382
|
const response = await this.send({
|
1383
1383
|
channel_join: {
|
1384
1384
|
clan_id: clan_id,
|
1385
|
+
parent_id: parent_id,
|
1385
1386
|
channel_id: channel_id,
|
1386
1387
|
channel_type: channel_type,
|
1387
|
-
is_public: is_public
|
1388
|
+
is_public: is_public,
|
1389
|
+
is_parent_public: is_parent_public
|
1388
1390
|
}
|
1389
1391
|
}
|
1390
1392
|
);
|