mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +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
504 B
TypeScript
17 lines
504 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { Type } from '@sinclair/typebox';
|
|
|
|
export class GetGuildList extends OneBotAction<void, void> {
|
|
override actionName = ActionName.GetGuildList;
|
|
override payloadSchema = Type.Object({});
|
|
override returnSchema = Type.Null();
|
|
override actionDescription = '获取频道列表';
|
|
override actionTags = ['频道接口'];
|
|
|
|
async _handle (): Promise<void> {
|
|
|
|
}
|
|
}
|