mezon-js 2.8.60 → 2.8.61

Sign up to get free protection for your applications and to get access to all the features.
package/client.ts CHANGED
@@ -194,6 +194,8 @@ export interface ChannelMessage {
194
194
  message_id?: string;
195
195
  //
196
196
  hideEditted?: boolean;
197
+ //
198
+ isPublic?: boolean;
197
199
  }
198
200
 
199
201
  /** A list of channel messages, usually a result of a list operation. */
package/dist/client.d.ts CHANGED
@@ -72,6 +72,7 @@ export interface ChannelMessage {
72
72
  mode?: number;
73
73
  message_id?: string;
74
74
  hideEditted?: boolean;
75
+ isPublic?: boolean;
75
76
  }
76
77
  /** A list of channel messages, usually a result of a list operation. */
77
78
  export interface ChannelMessageList {
@@ -4695,7 +4695,8 @@ var _DefaultSocket = class _DefaultSocket {
4695
4695
  mentions,
4696
4696
  attachments,
4697
4697
  references,
4698
- hideEditted: message.channel_message.hide_editted
4698
+ hideEditted: message.channel_message.hide_editted,
4699
+ isPublic: message.channel_message.is_public
4699
4700
  };
4700
4701
  this.onchannelmessage(e);
4701
4702
  } else if (message.message_typing_event) {
@@ -4666,7 +4666,8 @@ var _DefaultSocket = class _DefaultSocket {
4666
4666
  mentions,
4667
4667
  attachments,
4668
4668
  references,
4669
- hideEditted: message.channel_message.hide_editted
4669
+ hideEditted: message.channel_message.hide_editted,
4670
+ isPublic: message.channel_message.is_public
4670
4671
  };
4671
4672
  this.onchannelmessage(e);
4672
4673
  } else if (message.message_typing_event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.60",
3
+ "version": "2.8.61",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1063,6 +1063,7 @@ export class DefaultSocket implements Socket {
1063
1063
  attachments: attachments,
1064
1064
  references: references,
1065
1065
  hideEditted: message.channel_message.hide_editted,
1066
+ isPublic: message.channel_message.is_public
1066
1067
  };
1067
1068
  this.onchannelmessage(e);
1068
1069
  } else if (message.message_typing_event) {