mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
Added actionSummary, actionDescription, and actionTags to multiple OneBot actions for improved API documentation. Introduced payload and response examples for new actions (GetDoubtFriendsAddRequest, SetDoubtFriendsAddRequest) in a new examples.ts file. Also removed unused imports from several files for code clarity.
21 lines
770 B
TypeScript
21 lines
770 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 actionSummary = '获取频道列表';
|
|
override actionDescription = '获取当前帐号已加入的频道列表';
|
|
override actionTags = ['频道接口'];
|
|
override payloadExample = GuildActionsExamples.GetGuildList.payload;
|
|
override returnExample = GuildActionsExamples.GetGuildList.response;
|
|
|
|
async _handle (): Promise<void> {
|
|
|
|
}
|
|
}
|