mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
19 lines
603 B
TypeScript
19 lines
603 B
TypeScript
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
import { ActionName } from '@/onebot/action/router';
|
|
import { Static, Type } from '@sinclair/typebox';
|
|
|
|
const SchemaData = Type.Object({
|
|
count: Type.Number({ default: 50 }),
|
|
});
|
|
|
|
type Payload = Static<typeof SchemaData>;
|
|
|
|
export class GetDoubtFriendsAddRequest extends OneBotAction<Payload, unknown> {
|
|
override actionName = ActionName.GetDoubtFriendsAddRequest;
|
|
override payloadSchema = SchemaData;
|
|
|
|
async _handle(payload: Payload) {
|
|
return await this.core.apis.FriendApi.getDoubtFriendRequest(payload.count);
|
|
}
|
|
}
|