fix: poke report

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

No files matched your search

+11
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,