refactor: Action

This commit is contained in:
手瓜一十雪 committed 2024-11-19 12:49:51 +08:00
1 parent 86db0e827c
commit fa6a8816f8
88 files changed
+206 -221

No files matched your search

@@ -1,6 +1,6 @@
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { ActionName } from '../types';
import BaseAction from '../BaseAction';
import { OneBotAction } from '@/onebot/action/OneBotAction';
const SchemaData = {
type: 'object',
@@ -14,7 +14,7 @@ const SchemaData = {
type Payload = FromSchema<typeof SchemaData>;
export class DeleteGroupFileFolder extends BaseAction<Payload, any> {
export class DeleteGroupFileFolder extends OneBotAction<Payload, any> {
actionName = ActionName.GoCQHTTP_DeleteGroupFileFolder;
payloadSchema = SchemaData;
async _handle(payload: Payload) {