mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
为新的接龙表情提供 resultId 和 chainCount 返回
This commit is contained in:
@@ -190,7 +190,10 @@ export class OneBotMsgApi {
|
||||
return {
|
||||
type: OB11MessageDataType.face,
|
||||
data: {
|
||||
id: element.faceIndex.toString()
|
||||
id: element.faceIndex.toString(),
|
||||
raw: element,
|
||||
resultId: element.resultId,
|
||||
chainCount: element.chainCount,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -464,7 +467,7 @@ export class OneBotMsgApi {
|
||||
undefined;
|
||||
},
|
||||
|
||||
[OB11MessageDataType.face]: async ({ data: { id } }) => {
|
||||
[OB11MessageDataType.face]: async ({ data: { id, resultId, chainCount } }) => {
|
||||
const parsedFaceId = +id;
|
||||
// 从face_config.json中获取表情名称
|
||||
const sysFaces = faceConfig.sysface;
|
||||
@@ -491,6 +494,8 @@ export class OneBotMsgApi {
|
||||
stickerType: face.AniStickerType,
|
||||
packId: face.AniStickerPackId,
|
||||
sourceType: 1,
|
||||
resultId,
|
||||
chainCount,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
@@ -164,6 +164,8 @@ export interface OB11MessageFace {
|
||||
type: OB11MessageDataType.face;
|
||||
data: {
|
||||
id: string;
|
||||
resultId?: string;
|
||||
chainCount?: number;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -276,4 +278,4 @@ export interface OB11PostContext {
|
||||
message_type?: 'private' | 'group';
|
||||
user_id?: string;
|
||||
group_id?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user