1 parent
3ed5f543e2
commit
7b365367f7
88 files changed
+363
-363
No files matched your search
@@ -2,10 +2,10 @@ import { OneBotAction } from '@/onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { ChatType } from '@/core';
|
||||
import { z } from 'zod';
|
||||
import { coerce } from '@/common/coerce';
|
||||
import { actionType } from '@/common/coerce';
|
||||
const SchemaData = z.object({
|
||||
user_id: coerce.string(),
|
||||
event_type: coerce.number(),
|
||||
user_id: actionType.string(),
|
||||
event_type: actionType.number(),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in new issue
Block a user