mezon-js 2.7.85 → 2.7.86

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -112,6 +112,7 @@ export interface ChannelMessage {
112
112
  category_name?: string;
113
113
  username?: string;
114
114
  clan_nick?: string;
115
+ clan_avatar?: string;
115
116
  display_name?: string;
116
117
  }
117
118
  /** A list of channel messages, usually a result of a list operation. */
@@ -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,
@@ -5544,6 +5545,7 @@ var Client = class {
5544
5545
  clan_logo: m.clan_logo,
5545
5546
  category_name: m.category_name,
5546
5547
  clan_nick: m.clan_nick,
5548
+ clan_avatar: m.clan_avatar,
5547
5549
  attachments: m.attachments ? JSON.parse(m.attachments) : [],
5548
5550
  mentions: m.mentions ? JSON.parse(m.mentions) : [],
5549
5551
  reactions: m.reactions ? JSON.parse(m.reactions) : [],
@@ -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,
@@ -5515,6 +5516,7 @@ var Client = class {
5515
5516
  clan_logo: m.clan_logo,
5516
5517
  category_name: m.category_name,
5517
5518
  clan_nick: m.clan_nick,
5519
+ clan_avatar: m.clan_avatar,
5518
5520
  attachments: m.attachments ? JSON.parse(m.attachments) : [],
5519
5521
  mentions: m.mentions ? JSON.parse(m.mentions) : [],
5520
5522
  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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.85",
3
+ "version": "2.7.86",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
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
  //
@@ -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,