From b6ec1aaa9bed4199f252a81c46ec7062a6790838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 22 Nov 2024 20:15:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/types/msg.ts | 10 ++++++---- src/onebot/api/msg.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/core/types/msg.ts b/src/core/types/msg.ts index a7f37af3..3e064069 100644 --- a/src/core/types/msg.ts +++ b/src/core/types/msg.ts @@ -264,10 +264,12 @@ export enum NTGrayTipElementSubTypeV2 { * 表情类型枚举 */ export enum FaceType { - normal = 1, // 小黄脸 - normal2 = 2, // 新小黄脸 - dice = 3, // 骰子 - poke = 5 // 拍一拍 + Unknown = 0, + OldFace = 1, // 老表情 + Normal = 2, // 常规表情 + AniSticke = 3, // 动画贴纸 + Lottie = 4,// 新格式表情 + Poke = 5 // 可变Poke } /** diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index f5bf48e5..fdf04c2f 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -547,7 +547,7 @@ export class OneBotMsgApi { elementId: '', faceElement: { faceIndex: FaceIndex.dice, - faceType: FaceType.dice, + faceType: FaceType.AniSticke, faceText: '[骰子]', packId: '1', stickerId: '33',