From 8b85c5a4d5a5f4e168f3d73acaaf1045dbfc9b2f 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: Sun, 18 May 2025 20:19:53 +0800 Subject: [PATCH] fix --- src/onebot/action/packet/SendPoke.ts | 6 +++--- src/onebot/action/user/FriendPoke.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/onebot/action/packet/SendPoke.ts b/src/onebot/action/packet/SendPoke.ts index f459175c..6b47ebe3 100644 --- a/src/onebot/action/packet/SendPoke.ts +++ b/src/onebot/action/packet/SendPoke.ts @@ -3,9 +3,9 @@ import { GetPacketStatusDepends } from '@/onebot/action/packet/GetPacketStatus'; import { Static, Type } from '@sinclair/typebox'; const SchemaData = Type.Object({ - group_id: Type.Optional(Type.Union([Type.Number(), Type.String()])), - user_id: Type.Union([Type.Number(), Type.String()]), - target_id: Type.Union([Type.Number(), Type.String()]), + group_id: Type.Optional(Type.String()), + user_id: Type.String(), + target_id: Type.Optional(Type.String()), }); type Payload = Static; diff --git a/src/onebot/action/user/FriendPoke.ts b/src/onebot/action/user/FriendPoke.ts index 2a84ab28..80b024fc 100644 --- a/src/onebot/action/user/FriendPoke.ts +++ b/src/onebot/action/user/FriendPoke.ts @@ -4,7 +4,7 @@ import { Static, Type } from '@sinclair/typebox'; const SchemaData = Type.Object({ user_id: Type.Number(), - target_id: Type.Union([Type.Number(), Type.String()]), + target_id: Type.Optional(Type.String()), }); type Payload = Static;