mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
Introduces the actionSummary property to OneBotAction and updates all action classes to provide concise summaries and improved descriptions. Refactors example imports for better modularity, adds new example files for guild and packet actions, and updates the OpenAPI schema generator to use the new summary and improved descriptions. This enhances API documentation clarity and consistency.
20 lines
697 B
TypeScript
20 lines
697 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { Type } from '@sinclair/typebox';
|
|
import { GuildActionsExamples } from './examples';
|
|
|
|
export class GetGuildList extends OneBotAction<void, void> {
|
|
override actionName = ActionName.GetGuildList;
|
|
override payloadSchema = Type.Object({});
|
|
override returnSchema = Type.Null();
|
|
override actionDescription = '获取频道列表';
|
|
override actionTags = ['频道接口'];
|
|
override payloadExample = GuildActionsExamples.GetGuildList.payload;
|
|
override returnExample = GuildActionsExamples.GetGuildList.response;
|
|
|
|
async _handle (): Promise<void> {
|
|
|
|
}
|
|
}
|