@onyx-p/imlib-web 2.5.0 → 2.5.2

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/index.esm.js CHANGED
@@ -29138,9 +29138,11 @@ async function send(message, sentArgs) {
29138
29138
  };
29139
29139
  if (isDef(message.content.mentionedInfo)) {
29140
29140
  const mentionedInfo = message.content.mentionedInfo;
29141
- if (mentionedInfo.userIdList?.length) {
29142
- groupParams.at = mentionedInfo.userIdList.map(e => Long.fromString(e.uin));
29143
- const mentionedDetail = JSON.stringify(mentionedInfo.userIdList);
29141
+ if (mentionedInfo.userList?.length) {
29142
+ groupParams.at = mentionedInfo.userList.map(e => Long.fromString(e.uin));
29143
+ const mentionedDetail = JSON.stringify({
29144
+ atInfo: mentionedInfo.userList
29145
+ });
29144
29146
  groupParams.msgPreContent = mentionedDetail;
29145
29147
  }
29146
29148
  }
package/index.umd.js CHANGED
@@ -29144,9 +29144,11 @@
29144
29144
  };
29145
29145
  if (isDef(message.content.mentionedInfo)) {
29146
29146
  const mentionedInfo = message.content.mentionedInfo;
29147
- if (mentionedInfo.userIdList?.length) {
29148
- groupParams.at = mentionedInfo.userIdList.map(e => Long.fromString(e.uin));
29149
- const mentionedDetail = JSON.stringify(mentionedInfo.userIdList);
29147
+ if (mentionedInfo.userList?.length) {
29148
+ groupParams.at = mentionedInfo.userList.map(e => Long.fromString(e.uin));
29149
+ const mentionedDetail = JSON.stringify({
29150
+ atInfo: mentionedInfo.userList
29151
+ });
29150
29152
  groupParams.msgPreContent = mentionedDetail;
29151
29153
  }
29152
29154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  * 群组内的消息包含的 @ 数据
3
3
  */
4
4
  export default interface MentionedInfo {
5
- userIdList?: {
5
+ userList?: {
6
6
  uin: string;
7
7
  nickname: string;
8
8
  }[] | undefined;