mezon-js 2.7.46 → 2.7.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +10 -0
- package/dist/mezon-js.esm.mjs +10 -0
- package/dist/socket.d.ts +8 -0
- package/package.json +1 -1
- package/socket.ts +20 -0
package/dist/mezon-js.cjs.js
CHANGED
@@ -4543,6 +4543,16 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4543
4543
|
return response.status;
|
4544
4544
|
});
|
4545
4545
|
}
|
4546
|
+
joinClanChat(clan_id) {
|
4547
|
+
return __async(this, null, function* () {
|
4548
|
+
const response = yield this.send({
|
4549
|
+
clan_join: {
|
4550
|
+
clan_id
|
4551
|
+
}
|
4552
|
+
});
|
4553
|
+
return response.clan_join;
|
4554
|
+
});
|
4555
|
+
}
|
4546
4556
|
joinChat(channel_id, channel_label, mode, type, persistence, hidden) {
|
4547
4557
|
return __async(this, null, function* () {
|
4548
4558
|
const response = yield this.send(
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4514,6 +4514,16 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4514
4514
|
return response.status;
|
4515
4515
|
});
|
4516
4516
|
}
|
4517
|
+
joinClanChat(clan_id) {
|
4518
|
+
return __async(this, null, function* () {
|
4519
|
+
const response = yield this.send({
|
4520
|
+
clan_join: {
|
4521
|
+
clan_id
|
4522
|
+
}
|
4523
|
+
});
|
4524
|
+
return response.clan_join;
|
4525
|
+
});
|
4526
|
+
}
|
4517
4527
|
joinChat(channel_id, channel_label, mode, type, persistence, hidden) {
|
4518
4528
|
return __async(this, null, function* () {
|
4519
4529
|
const response = yield this.send(
|
package/dist/socket.d.ts
CHANGED
@@ -40,6 +40,11 @@ export interface Channel {
|
|
40
40
|
user_id_one: string;
|
41
41
|
user_id_two: string;
|
42
42
|
}
|
43
|
+
interface ClanJoin {
|
44
|
+
clan_join: {
|
45
|
+
clan_id: string;
|
46
|
+
};
|
47
|
+
}
|
43
48
|
/** Join a realtime chat channel. */
|
44
49
|
interface ChannelJoin {
|
45
50
|
channel_join: {
|
@@ -534,6 +539,8 @@ export interface Socket {
|
|
534
539
|
createParty(open: boolean, max_size: number): Promise<Party>;
|
535
540
|
/** Subscribe to one or more users for their status updates. */
|
536
541
|
followUsers(user_ids: string[]): Promise<Status>;
|
542
|
+
/** Join clan chat */
|
543
|
+
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
537
544
|
/** Join a chat channel on the server. */
|
538
545
|
joinChat(channel_id: string, channel_label: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
539
546
|
/** Join a party. */
|
@@ -680,6 +687,7 @@ export declare class DefaultSocket implements Socket {
|
|
680
687
|
closeParty(party_id: string): Promise<void>;
|
681
688
|
createParty(open: boolean, max_size: number): Promise<Party>;
|
682
689
|
followUsers(userIds: string[]): Promise<Status>;
|
690
|
+
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
683
691
|
joinChat(channel_id: string, channel_label: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
684
692
|
joinParty(party_id: string): Promise<void>;
|
685
693
|
leaveChat(channel_id: string, channel_label: string, mode: number): Promise<void>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -54,6 +54,12 @@ export interface Channel {
|
|
54
54
|
user_id_two: string;
|
55
55
|
}
|
56
56
|
|
57
|
+
interface ClanJoin {
|
58
|
+
clan_join: {
|
59
|
+
clan_id: string;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
57
63
|
/** Join a realtime chat channel. */
|
58
64
|
interface ChannelJoin {
|
59
65
|
channel_join: {
|
@@ -694,6 +700,9 @@ export interface Socket {
|
|
694
700
|
/** Subscribe to one or more users for their status updates. */
|
695
701
|
followUsers(user_ids: string[]) : Promise<Status>;
|
696
702
|
|
703
|
+
/** Join clan chat */
|
704
|
+
joinClanChat(clan_id: string) : Promise<ClanJoin>;
|
705
|
+
|
697
706
|
/** Join a chat channel on the server. */
|
698
707
|
joinChat(channel_id: string, channel_label: string, mode: number, type: number, persistence: boolean, hidden: boolean) : Promise<Channel>;
|
699
708
|
|
@@ -1253,6 +1262,17 @@ export class DefaultSocket implements Socket {
|
|
1253
1262
|
return response.status;
|
1254
1263
|
}
|
1255
1264
|
|
1265
|
+
async joinClanChat(clan_id: string): Promise<ClanJoin> {
|
1266
|
+
|
1267
|
+
const response = await this.send({
|
1268
|
+
clan_join: {
|
1269
|
+
clan_id: clan_id,
|
1270
|
+
}
|
1271
|
+
});
|
1272
|
+
|
1273
|
+
return response.clan_join;
|
1274
|
+
}
|
1275
|
+
|
1256
1276
|
async joinChat(channel_id: string, channel_label: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel> {
|
1257
1277
|
|
1258
1278
|
const response = await this.send({
|