mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 07:29:38 +00: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 { coerce } from '@/common/coerce';
|
|
const SchemaData = z.object({
|
|
group_id: coerce.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());
|
|
}
|
|
}
|
|
|