mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 07:01:16 +00:00
Introduced a centralized examples.ts file providing payload and return examples for all actions. Updated numerous action classes to include actionDescription, actionTags, payloadExample, and returnExample fields, improving API documentation and discoverability.
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { Type } from '@sinclair/typebox';
|
|
|
|
export class GetGuildProfile extends OneBotAction<void, void> {
|
|
override actionName = ActionName.GetGuildProfile;
|
|
override payloadSchema = Type.Object({});
|
|
override returnSchema = Type.Null();
|
|
override actionDescription = '获取频道个人信息';
|
|
override actionTags = ['频道接口'];
|
|
|
|
async _handle (): Promise<void> {
|
|
|
|
}
|
|
}
|