mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
Replaced generic ActionExamples imports with more specific examples modules (FileActionsExamples, GroupActionsExamples, GoCQHTTPActionsExamples) across file, group, and go-cqhttp actions. Added or updated actionSummary, actionDescription, actionTags, payloadExample, and returnExample properties for improved API documentation and clarity.
27 lines
986 B
TypeScript
27 lines
986 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { Static, Type } from '@sinclair/typebox';
|
|
|
|
const PayloadSchema = Type.Object({
|
|
group_id: Type.String({ description: '群号' }),
|
|
});
|
|
|
|
type PayloadType = Static<typeof PayloadSchema>;
|
|
|
|
const ReturnSchema = Type.Array(Type.Any(), { description: '禁言成员列表' });
|
|
|
|
type ReturnType = Static<typeof ReturnSchema>;
|
|
|
|
export class GetGroupShutList extends OneBotAction<PayloadType, ReturnType> {
|
|
override actionName = ActionName.GetGroupShutList;
|
|
override payloadSchema = PayloadSchema;
|
|
override returnSchema = ReturnSchema;
|
|
override actionSummary = '获取群禁言列表';
|
|
override actionDescription = '获取指定群聊中被禁言的成员列表';
|
|
override actionTags = ['群组接口'];
|
|
|
|
async _handle (payload: PayloadType) {
|
|
return await this.core.apis.GroupApi.getGroupShutUpMemberList(payload.group_id.toString());
|
|
}
|
|
}
|