mezon-js 2.7.85 → 2.7.87
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +4 -0
- package/client.ts +3 -0
- package/dist/api.gen.d.ts +2 -0
- package/dist/client.d.ts +1 -0
- package/dist/mezon-js.cjs.js +4 -5
- package/dist/mezon-js.esm.mjs +4 -5
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +5 -5
package/api.gen.ts
CHANGED
@@ -9,6 +9,8 @@ export interface ChannelUserListChannelUser {
|
|
9
9
|
//
|
10
10
|
clan_nick?: string;
|
11
11
|
//
|
12
|
+
clan_avatar?: string;
|
13
|
+
//
|
12
14
|
id?: string;
|
13
15
|
//Their relationship to the role.
|
14
16
|
role_id?: Array<string>;
|
@@ -395,6 +397,8 @@ export interface ApiChannelMessage {
|
|
395
397
|
clan_logo?: string;
|
396
398
|
//
|
397
399
|
clan_nick?: string;
|
400
|
+
//
|
401
|
+
clan_avatar?: string;
|
398
402
|
//The code representing a message type or category.
|
399
403
|
code: number;
|
400
404
|
//The content payload.
|
package/client.ts
CHANGED
@@ -238,6 +238,8 @@ export interface ChannelMessage {
|
|
238
238
|
username?: string;
|
239
239
|
// The clan nick name
|
240
240
|
clan_nick?: string;
|
241
|
+
// The clan avatar
|
242
|
+
clan_avatar?: string;
|
241
243
|
//
|
242
244
|
display_name?: string;
|
243
245
|
}
|
@@ -1078,6 +1080,7 @@ export class Client {
|
|
1078
1080
|
clan_logo: m.clan_logo,
|
1079
1081
|
category_name: m.category_name,
|
1080
1082
|
clan_nick: m.clan_nick,
|
1083
|
+
clan_avatar: m.clan_avatar,
|
1081
1084
|
attachments: m.attachments ? JSON.parse(m.attachments) : [],
|
1082
1085
|
mentions: m.mentions ? JSON.parse(m.mentions) : [],
|
1083
1086
|
reactions: m.reactions ? JSON.parse(m.reactions) : [],
|
package/dist/api.gen.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/** A single user-role pair. */
|
2
2
|
export interface ChannelUserListChannelUser {
|
3
3
|
clan_nick?: string;
|
4
|
+
clan_avatar?: string;
|
4
5
|
id?: string;
|
5
6
|
role_id?: Array<string>;
|
6
7
|
thread_id?: string;
|
@@ -225,6 +226,7 @@ export interface ApiChannelMessage {
|
|
225
226
|
clan_id?: string;
|
226
227
|
clan_logo?: string;
|
227
228
|
clan_nick?: string;
|
229
|
+
clan_avatar?: string;
|
228
230
|
code: number;
|
229
231
|
content: string;
|
230
232
|
create_time?: string;
|
package/dist/client.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -4647,6 +4647,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4647
4647
|
category_name: message.channel_message.category_name,
|
4648
4648
|
username: message.channel_message.username,
|
4649
4649
|
clan_nick: message.channel_message.clan_nick,
|
4650
|
+
clan_avatar: message.channel_message.clan_avatar,
|
4650
4651
|
display_name: message.channel_message.display_name,
|
4651
4652
|
content,
|
4652
4653
|
reactions,
|
@@ -4861,17 +4862,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4861
4862
|
return response.clan_join;
|
4862
4863
|
});
|
4863
4864
|
}
|
4864
|
-
joinChat(clan_id, channel_id, mode
|
4865
|
+
joinChat(clan_id, channel_id, mode) {
|
4865
4866
|
return __async(this, null, function* () {
|
4866
4867
|
const response = yield this.send(
|
4867
4868
|
{
|
4868
4869
|
channel_join: {
|
4869
4870
|
clan_id,
|
4870
4871
|
channel_id,
|
4871
|
-
mode
|
4872
|
-
type,
|
4873
|
-
persistence,
|
4874
|
-
hidden
|
4872
|
+
mode
|
4875
4873
|
}
|
4876
4874
|
}
|
4877
4875
|
);
|
@@ -5544,6 +5542,7 @@ var Client = class {
|
|
5544
5542
|
clan_logo: m.clan_logo,
|
5545
5543
|
category_name: m.category_name,
|
5546
5544
|
clan_nick: m.clan_nick,
|
5545
|
+
clan_avatar: m.clan_avatar,
|
5547
5546
|
attachments: m.attachments ? JSON.parse(m.attachments) : [],
|
5548
5547
|
mentions: m.mentions ? JSON.parse(m.mentions) : [],
|
5549
5548
|
reactions: m.reactions ? JSON.parse(m.reactions) : [],
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4618,6 +4618,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4618
4618
|
category_name: message.channel_message.category_name,
|
4619
4619
|
username: message.channel_message.username,
|
4620
4620
|
clan_nick: message.channel_message.clan_nick,
|
4621
|
+
clan_avatar: message.channel_message.clan_avatar,
|
4621
4622
|
display_name: message.channel_message.display_name,
|
4622
4623
|
content,
|
4623
4624
|
reactions,
|
@@ -4832,17 +4833,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4832
4833
|
return response.clan_join;
|
4833
4834
|
});
|
4834
4835
|
}
|
4835
|
-
joinChat(clan_id, channel_id, mode
|
4836
|
+
joinChat(clan_id, channel_id, mode) {
|
4836
4837
|
return __async(this, null, function* () {
|
4837
4838
|
const response = yield this.send(
|
4838
4839
|
{
|
4839
4840
|
channel_join: {
|
4840
4841
|
clan_id,
|
4841
4842
|
channel_id,
|
4842
|
-
mode
|
4843
|
-
type,
|
4844
|
-
persistence,
|
4845
|
-
hidden
|
4843
|
+
mode
|
4846
4844
|
}
|
4847
4845
|
}
|
4848
4846
|
);
|
@@ -5515,6 +5513,7 @@ var Client = class {
|
|
5515
5513
|
clan_logo: m.clan_logo,
|
5516
5514
|
category_name: m.category_name,
|
5517
5515
|
clan_nick: m.clan_nick,
|
5516
|
+
clan_avatar: m.clan_avatar,
|
5518
5517
|
attachments: m.attachments ? JSON.parse(m.attachments) : [],
|
5519
5518
|
mentions: m.mentions ? JSON.parse(m.mentions) : [],
|
5520
5519
|
reactions: m.reactions ? JSON.parse(m.reactions) : [],
|
package/dist/socket.d.ts
CHANGED
@@ -189,6 +189,7 @@ export interface ChannelMessageEvent {
|
|
189
189
|
category_name: string;
|
190
190
|
username: string;
|
191
191
|
clan_nick: string;
|
192
|
+
clan_avatar: string;
|
192
193
|
display_name: string;
|
193
194
|
reactions?: Array<ApiMessageReaction>;
|
194
195
|
mentions?: Array<ApiMessageMention>;
|
@@ -412,7 +413,7 @@ export interface Socket {
|
|
412
413
|
/** Join clan chat */
|
413
414
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
414
415
|
/** Join a chat channel on the server. */
|
415
|
-
joinChat(clan_id: string, channel_id: string, mode: number
|
416
|
+
joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel>;
|
416
417
|
/** Leave a chat channel on the server. */
|
417
418
|
leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
|
418
419
|
/** Remove a chat message from a chat channel on the server. */
|
@@ -535,7 +536,7 @@ export declare class DefaultSocket implements Socket {
|
|
535
536
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
|
536
537
|
followUsers(userIds: string[]): Promise<Status>;
|
537
538
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
538
|
-
joinChat(clan_id: string, channel_id: string, mode: number
|
539
|
+
joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel>;
|
539
540
|
leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
|
540
541
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
541
542
|
removePartyMember(party_id: string, member: Presence): Promise<void>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -261,6 +261,8 @@ export interface ChannelMessageEvent {
|
|
261
261
|
username: string;
|
262
262
|
// The clan nick name
|
263
263
|
clan_nick: string;
|
264
|
+
// The clan avatar
|
265
|
+
clan_avatar: string;
|
264
266
|
// The display name
|
265
267
|
display_name: string;
|
266
268
|
//
|
@@ -570,7 +572,7 @@ export interface Socket {
|
|
570
572
|
joinClanChat(clan_id: string) : Promise<ClanJoin>;
|
571
573
|
|
572
574
|
/** Join a chat channel on the server. */
|
573
|
-
joinChat(clan_id: string, channel_id: string, mode: number
|
575
|
+
joinChat(clan_id: string, channel_id: string, mode: number) : Promise<Channel>;
|
574
576
|
|
575
577
|
/** Leave a chat channel on the server. */
|
576
578
|
leaveChat(clan_id: string, channel_id: string, mode: number) : Promise<void>;
|
@@ -803,6 +805,7 @@ export class DefaultSocket implements Socket {
|
|
803
805
|
category_name: message.channel_message.category_name,
|
804
806
|
username: message.channel_message.username,
|
805
807
|
clan_nick: message.channel_message.clan_nick,
|
808
|
+
clan_avatar: message.channel_message.clan_avatar,
|
806
809
|
display_name: message.channel_message.display_name,
|
807
810
|
content: content,
|
808
811
|
reactions: reactions,
|
@@ -1054,16 +1057,13 @@ export class DefaultSocket implements Socket {
|
|
1054
1057
|
return response.clan_join;
|
1055
1058
|
}
|
1056
1059
|
|
1057
|
-
async joinChat(clan_id: string, channel_id: string, mode: number
|
1060
|
+
async joinChat(clan_id: string, channel_id: string, mode: number): Promise<Channel> {
|
1058
1061
|
|
1059
1062
|
const response = await this.send({
|
1060
1063
|
channel_join: {
|
1061
1064
|
clan_id: clan_id,
|
1062
1065
|
channel_id: channel_id,
|
1063
1066
|
mode: mode,
|
1064
|
-
type: type,
|
1065
|
-
persistence: persistence,
|
1066
|
-
hidden: hidden
|
1067
1067
|
}
|
1068
1068
|
}
|
1069
1069
|
);
|