fix: poke report

This commit is contained in:
手瓜一十雪
2024-12-04 22:16:59 +08:00
parent 4da49e79b6
commit 034d13d005
3 changed files with 21 additions and 1 deletions

View File

@@ -153,6 +153,17 @@ export class OneBotMsgApi {
faceElement: async element => {
const faceIndex = element.faceIndex;
if (element.faceType == FaceType.Poke) {
return {
type: OB11MessageDataType.poke,
data: {
type: element?.pokeType?.toString() ?? '0',
id: faceIndex.toString(),
}
}
}
if (faceIndex === FaceIndex.DICE) {
return {
type: OB11MessageDataType.dice,