mezon-js 2.8.10 → 2.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.gen.ts CHANGED
@@ -964,6 +964,10 @@ export interface ApiMessageMention {
964
964
  role_id?: string;
965
965
  // role name
966
966
  rolename?: string;
967
+ // start position
968
+ s?: number;
969
+ // end position
970
+ e?: number;
967
971
  }
968
972
 
969
973
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -553,6 +553,8 @@ export interface ApiMessageMention {
553
553
  username?: string;
554
554
  role_id?: string;
555
555
  rolename?: string;
556
+ s?: number;
557
+ e?: number;
556
558
  }
557
559
  /** */
558
560
  export interface ApiMessageReaction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.10",
3
+ "version": "2.8.11",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1247,7 +1247,7 @@ export class DefaultSocket implements Socket {
1247
1247
  }
1248
1248
 
1249
1249
  async writeChatMessage(clan_id: string, channel_id: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:Boolean, notifi_content?: any ): Promise<ChannelMessageAck> {
1250
- const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, mode:mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone:mention_everyone, notifi_content:notifi_content}});
1250
+ const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, mode: mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone:mention_everyone, notifi_content:notifi_content}});
1251
1251
  return response.channel_message_ack;
1252
1252
  }
1253
1253