mezon-js 2.8.87 → 2.8.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +7 -0
- package/dist/mezon-js.esm.mjs +7 -0
- package/dist/socket.d.ts +6 -0
- package/package.json +1 -1
- package/socket.ts +18 -0
package/dist/mezon-js.cjs.js
CHANGED
@@ -4877,6 +4877,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4877
4877
|
this.onchannelcreated(message.channel_created_event);
|
4878
4878
|
} else if (message.channel_deleted_event) {
|
4879
4879
|
this.onchanneldeleted(message.channel_deleted_event);
|
4880
|
+
} else if (message.clan_deleted_envet) {
|
4881
|
+
this.onclandeleted(message.clan_deleted_envet);
|
4880
4882
|
} else if (message.channel_updated_event) {
|
4881
4883
|
this.onchannelupdated(message.channel_updated_event);
|
4882
4884
|
} else if (message.clan_profile_updated_event) {
|
@@ -5112,6 +5114,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5112
5114
|
console.log(channelDeleted);
|
5113
5115
|
}
|
5114
5116
|
}
|
5117
|
+
onclandeleted(clanDeleted) {
|
5118
|
+
if (this.verbose && window && window.console) {
|
5119
|
+
console.log(clanDeleted);
|
5120
|
+
}
|
5121
|
+
}
|
5115
5122
|
onchannelupdated(channelUpdated) {
|
5116
5123
|
if (this.verbose && window && window.console) {
|
5117
5124
|
console.log(channelUpdated);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4848,6 +4848,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4848
4848
|
this.onchannelcreated(message.channel_created_event);
|
4849
4849
|
} else if (message.channel_deleted_event) {
|
4850
4850
|
this.onchanneldeleted(message.channel_deleted_event);
|
4851
|
+
} else if (message.clan_deleted_envet) {
|
4852
|
+
this.onclandeleted(message.clan_deleted_envet);
|
4851
4853
|
} else if (message.channel_updated_event) {
|
4852
4854
|
this.onchannelupdated(message.channel_updated_event);
|
4853
4855
|
} else if (message.clan_profile_updated_event) {
|
@@ -5083,6 +5085,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5083
5085
|
console.log(channelDeleted);
|
5084
5086
|
}
|
5085
5087
|
}
|
5088
|
+
onclandeleted(clanDeleted) {
|
5089
|
+
if (this.verbose && window && window.console) {
|
5090
|
+
console.log(clanDeleted);
|
5091
|
+
}
|
5092
|
+
}
|
5086
5093
|
onchannelupdated(channelUpdated) {
|
5087
5094
|
if (this.verbose && window && window.console) {
|
5088
5095
|
console.log(channelUpdated);
|
package/dist/socket.d.ts
CHANGED
@@ -310,6 +310,10 @@ export interface ChannelDeletedEvent {
|
|
310
310
|
channel_id: string;
|
311
311
|
deletor: string;
|
312
312
|
}
|
313
|
+
export interface ClanDeletedEvent {
|
314
|
+
clan_id: string;
|
315
|
+
deletor: string;
|
316
|
+
}
|
313
317
|
export interface PermissionRoleChannelListEvent {
|
314
318
|
role_id?: string;
|
315
319
|
channel_id?: string;
|
@@ -625,6 +629,7 @@ export interface Socket {
|
|
625
629
|
onvoiceleaved: (voiceParticipant: VoiceLeavedEvent) => void;
|
626
630
|
onchannelcreated: (channelCreated: ChannelCreatedEvent) => void;
|
627
631
|
onchanneldeleted: (channelDeleted: ChannelDeletedEvent) => void;
|
632
|
+
onclandeleted: (clanDeleted: ClanDeletedEvent) => void;
|
628
633
|
onchannelupdated: (channelUpdated: ChannelUpdatedEvent) => void;
|
629
634
|
onclanprofileupdated: (clanprofile: ClanProfileUpdatedEvent) => void;
|
630
635
|
onclanupdated: (clan: ClanUpdatedEvent) => void;
|
@@ -696,6 +701,7 @@ export declare class DefaultSocket implements Socket {
|
|
696
701
|
onvoiceleaved(voiceParticipant: VoiceLeavedEvent): void;
|
697
702
|
onchannelcreated(channelCreated: ChannelCreatedEvent): void;
|
698
703
|
onchanneldeleted(channelDeleted: ChannelDeletedEvent): void;
|
704
|
+
onclandeleted(clanDeleted: ClanDeletedEvent): void;
|
699
705
|
onchannelupdated(channelUpdated: ChannelUpdatedEvent): void;
|
700
706
|
onclanprofileupdated(clanprofile: ClanProfileUpdatedEvent): void;
|
701
707
|
onclanupdated(clan: ClanUpdatedEvent): void;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -456,6 +456,13 @@ export interface ChannelDeletedEvent {
|
|
456
456
|
deletor: string;
|
457
457
|
}
|
458
458
|
|
459
|
+
export interface ClanDeletedEvent {
|
460
|
+
// clan id
|
461
|
+
clan_id: string;
|
462
|
+
// deletor
|
463
|
+
deletor: string;
|
464
|
+
}
|
465
|
+
|
459
466
|
// A list of permission role channel.
|
460
467
|
export interface PermissionRoleChannelListEvent {
|
461
468
|
//
|
@@ -938,6 +945,9 @@ export interface Socket {
|
|
938
945
|
// when channel is deleted
|
939
946
|
onchanneldeleted: (channelDeleted: ChannelDeletedEvent) => void;
|
940
947
|
|
948
|
+
// when clan is deleted
|
949
|
+
onclandeleted: (clanDeleted: ClanDeletedEvent) => void;
|
950
|
+
|
941
951
|
// when channel is updated
|
942
952
|
onchannelupdated: (channelUpdated: ChannelUpdatedEvent) => void;
|
943
953
|
|
@@ -1070,6 +1080,8 @@ export class DefaultSocket implements Socket {
|
|
1070
1080
|
this.onchannelcreated(message.channel_created_event)
|
1071
1081
|
} else if (message.channel_deleted_event) {
|
1072
1082
|
this.onchanneldeleted(message.channel_deleted_event)
|
1083
|
+
} else if (message.clan_deleted_envet) {
|
1084
|
+
this.onclandeleted(message.clan_deleted_envet)
|
1073
1085
|
} else if (message.channel_updated_event) {
|
1074
1086
|
this.onchannelupdated(message.channel_updated_event)
|
1075
1087
|
} else if (message.clan_profile_updated_event) {
|
@@ -1339,6 +1351,12 @@ export class DefaultSocket implements Socket {
|
|
1339
1351
|
}
|
1340
1352
|
}
|
1341
1353
|
|
1354
|
+
onclandeleted(clanDeleted: ClanDeletedEvent) {
|
1355
|
+
if (this.verbose && window && window.console) {
|
1356
|
+
console.log(clanDeleted);
|
1357
|
+
}
|
1358
|
+
}
|
1359
|
+
|
1342
1360
|
onchannelupdated(channelUpdated: ChannelUpdatedEvent) {
|
1343
1361
|
if (this.verbose && window && window.console) {
|
1344
1362
|
console.log(channelUpdated);
|