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

View File

@@ -3,16 +3,16 @@ import { OneBotAction } from '@/onebot/action/OneBotAction';
import { ActionName } from '@/onebot/action/router';
import { MessageUnique } from '@/common/message-unique';
import { RawMessage } from '@/core';
import { z } from 'zod';
import { Static, Type } from '@sinclair/typebox';
import { NetworkAdapterConfig } from '@/onebot/config/config';
export type ReturnDataType = OB11Message
const SchemaData = z.object({
message_id: z.union([z.number(), z.string()]),
const SchemaData = Type.Object({
message_id: Type.Union([Type.Number(), Type.String()]),
});
type Payload = z.infer<typeof SchemaData>;
type Payload = Static<typeof SchemaData>;
class GetMsg extends OneBotAction<Payload, OB11Message> {
override actionName = ActionName.GetMsg;