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.
12 lines
415 B
TypeScript
12 lines
415 B
TypeScript
import { GetFileBase } from './GetFile';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { ActionExamples } from '../examples';
|
|
|
|
export default class GetImage extends GetFileBase {
|
|
override actionName = ActionName.GetImage;
|
|
override actionDescription = '获取图片';
|
|
override payloadExample = ActionExamples.GetImage.payload;
|
|
override returnExample = ActionExamples.GetImage.return;
|
|
}
|