mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-10 05:29:02 +08:00
19 lines
604 B
TypeScript
19 lines
604 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-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);
|
|
}
|
|
}
|