mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Moved action example files into a new 'example' directory and updated all imports accordingly. Removed the monolithic 'examples.ts' and redefined ActionExamples in OneBotAction.ts to only include common error codes. This improves code organization and maintainability.
21 lines
791 B
TypeScript
21 lines
791 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { Type } from '@sinclair/typebox';
|
|
import { GuildActionsExamples } from '../example/GuildActionsExamples';
|
|
|
|
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> {
|
|
|
|
}
|
|
}
|