mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 22:51:13 +00:00
Added or updated actionSummary, actionTags, payloadExample, and returnExample properties for all OneBot action classes in the napcat-onebot package. This improves API documentation and discoverability by providing concise summaries, categorization tags, and usage examples for each action.
24 lines
822 B
TypeScript
24 lines
822 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { Type, Static } from '@sinclair/typebox';
|
|
|
|
const ReturnSchema = Type.Array(Type.Any(), { description: '机器人Uin范围列表' });
|
|
|
|
type ReturnType = Static<typeof ReturnSchema>;
|
|
|
|
export class GetRobotUinRange extends OneBotAction<void, ReturnType> {
|
|
override actionName = ActionName.GetRobotUinRange;
|
|
override actionSummary = '获取机器人 UIN 范围';
|
|
override actionTags = ['系统扩展'];
|
|
override payloadExample = {};
|
|
override returnExample = [
|
|
{ minUin: '12345678', maxUin: '87654321' }
|
|
];
|
|
override payloadSchema = Type.Void();
|
|
override returnSchema = ReturnSchema;
|
|
|
|
async _handle () {
|
|
return await this.core.apis.UserApi.getRobotUinRange();
|
|
}
|
|
}
|