mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-01 07:19:03 +08:00
21 lines
662 B
TypeScript
21 lines
662 B
TypeScript
import { ShutUpGroupMember } from '@/core';
|
|
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
import { ActionName } from '@/onebot/action/router';
|
|
import { z } from 'zod';
|
|
import { actionType } from '../type';
|
|
const SchemaData = z.object({
|
|
group_id: actionType.string(),
|
|
});
|
|
|
|
type Payload = z.infer<typeof SchemaData>;
|
|
|
|
export class GetGroupShutList extends OneBotAction<Payload, ShutUpGroupMember[]> {
|
|
override actionName = ActionName.GetGroupShutList;
|
|
override payloadSchema = SchemaData;
|
|
|
|
async _handle(payload: Payload) {
|
|
return await this.core.apis.GroupApi.getGroupShutUpMemberList(payload.group_id.toString());
|
|
}
|
|
}
|
|
|