This commit is contained in:
手瓜一十雪 committed 2025-04-19 11:03:03 +08:00
1 parent d921dcddf1
commit cd8698b157
100 files changed
+931 -937

No files matched your search

+4 -4
View File
@@ -2,13 +2,13 @@ import { OB11User } from '@/onebot';
import { OB11Construct } from '@/onebot/helper/data';
import { OneBotAction } from '@/onebot/action/OneBotAction';
import { ActionName } from '@/onebot/action/router';
import { z } from 'zod';
import { Static, Type } from '@sinclair/typebox';
const SchemaData = z.object({
no_cache: z.boolean().optional(),
const SchemaData = Type.Object({
no_cache: Type.Optional(Type.Union([Type.Boolean(), Type.String()])),
});
type Payload = z.infer<typeof SchemaData>;
type Payload = Static<typeof SchemaData>;
export default class GetFriendList extends OneBotAction<Payload, OB11User[]> {
override actionName = ActionName.GetFriendList;