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