1 parent
3ed5f543e2
commit
7b365367f7
88 files changed
+363
-363
No files matched your search
@@ -3,11 +3,11 @@ import { OneBotAction } from '@/onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { MessageUnique } from '@/common/message-unique';
|
||||
import { z } from 'zod';
|
||||
import { coerce } from '@/common/coerce';
|
||||
import { actionType } from '@/common/coerce';
|
||||
const SchemaData = z.object({
|
||||
user_id: coerce.string().optional(),
|
||||
group_id: coerce.string().optional(),
|
||||
message_id: coerce.string().optional(),
|
||||
user_id: actionType.string().optional(),
|
||||
group_id: actionType.string().optional(),
|
||||
message_id: actionType.string().optional(),
|
||||
});
|
||||
|
||||
type PlayloadType = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in new issue
Block a user