mezon-js 2.7.82 → 2.7.83
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +2 -0
- package/client.ts +3 -0
- package/dist/api.gen.d.ts +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/mezon-js.cjs.js +2 -0
- package/dist/mezon-js.esm.mjs +2 -0
- package/dist/socket.d.ts +1 -0
- package/package.json +1 -1
- package/socket.ts +3 -0
package/api.gen.ts
CHANGED
@@ -402,6 +402,8 @@ export interface ApiChannelMessage {
|
|
402
402
|
//The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
|
403
403
|
create_time?: string;
|
404
404
|
//
|
405
|
+
display_name?: string;
|
406
|
+
//
|
405
407
|
mentions?: string;
|
406
408
|
//The unique ID of this message.
|
407
409
|
message_id: string;
|
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
|
+
//
|
242
|
+
display_name?: string;
|
241
243
|
}
|
242
244
|
|
243
245
|
/** A list of channel messages, usually a result of a list operation. */
|
@@ -1069,6 +1071,7 @@ export class Client {
|
|
1069
1071
|
sender_id: m.sender_id,
|
1070
1072
|
update_time: m.update_time,
|
1071
1073
|
username: m.username,
|
1074
|
+
display_name: m.display_name,
|
1072
1075
|
avatar: m.avatar,
|
1073
1076
|
content: m.content ? JSON.parse(m.content) : undefined,
|
1074
1077
|
channel_label: m.channel_label,
|
package/dist/api.gen.d.ts
CHANGED
package/dist/client.d.ts
CHANGED
@@ -112,6 +112,7 @@ export interface ChannelMessage {
|
|
112
112
|
category_name?: string;
|
113
113
|
username?: string;
|
114
114
|
clan_nick?: string;
|
115
|
+
display_name?: string;
|
115
116
|
}
|
116
117
|
/** A list of channel messages, usually a result of a list operation. */
|
117
118
|
export interface ChannelMessageList {
|
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.clan_nick,
|
4650
|
+
display_name: message.display_name,
|
4650
4651
|
content,
|
4651
4652
|
reactions,
|
4652
4653
|
mentions,
|
@@ -5536,6 +5537,7 @@ var Client = class {
|
|
5536
5537
|
sender_id: m.sender_id,
|
5537
5538
|
update_time: m.update_time,
|
5538
5539
|
username: m.username,
|
5540
|
+
display_name: m.display_name,
|
5539
5541
|
avatar: m.avatar,
|
5540
5542
|
content: m.content ? JSON.parse(m.content) : void 0,
|
5541
5543
|
channel_label: m.channel_label,
|
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.clan_nick,
|
4621
|
+
display_name: message.display_name,
|
4621
4622
|
content,
|
4622
4623
|
reactions,
|
4623
4624
|
mentions,
|
@@ -5507,6 +5508,7 @@ var Client = class {
|
|
5507
5508
|
sender_id: m.sender_id,
|
5508
5509
|
update_time: m.update_time,
|
5509
5510
|
username: m.username,
|
5511
|
+
display_name: m.display_name,
|
5510
5512
|
avatar: m.avatar,
|
5511
5513
|
content: m.content ? JSON.parse(m.content) : void 0,
|
5512
5514
|
channel_label: m.channel_label,
|
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
|
+
display_name: string;
|
192
193
|
reactions?: Array<ApiMessageReaction>;
|
193
194
|
mentions?: Array<ApiMessageMention>;
|
194
195
|
attachments?: Array<ApiMessageAttachment>;
|
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 display name
|
265
|
+
display_name: string;
|
264
266
|
//
|
265
267
|
reactions?: Array<ApiMessageReaction>;
|
266
268
|
//
|
@@ -801,6 +803,7 @@ export class DefaultSocket implements Socket {
|
|
801
803
|
category_name: message.channel_message.category_name,
|
802
804
|
username: message.channel_message.username,
|
803
805
|
clan_nick: message.clan_nick,
|
806
|
+
display_name: message.display_name,
|
804
807
|
content: content,
|
805
808
|
reactions: reactions,
|
806
809
|
mentions: mentions,
|