mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-10 22:19:06 +08:00
20 lines
680 B
TypeScript
20 lines
680 B
TypeScript
import { ShutUpGroupMember } from 'napcat-core';
|
|
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { Static, Type } from '@sinclair/typebox';
|
|
|
|
const SchemaData = Type.Object({
|
|
group_id: Type.Union([Type.Number(), Type.String()]),
|
|
});
|
|
|
|
type Payload = Static<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());
|
|
}
|
|
}
|