NapCatQQ/packages/napcat-onebot/action/guild/GetGuildProfile.ts
手瓜一十雪 e6687750eb Add actionSummary and improve action metadata
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.
2026-01-25 18:06:24 +08:00

20 lines
715 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 GetGuildProfile extends OneBotAction<void, void> {
override actionName = ActionName.GetGuildProfile;
override payloadSchema = Type.Object({});
override returnSchema = Type.Null();
override actionDescription = '获取频道个人信息';
override actionTags = ['频道接口'];
override payloadExample = GuildActionsExamples.GetGuildProfile.payload;
override returnExample = GuildActionsExamples.GetGuildProfile.response;
async _handle (): Promise<void> {
}
}