diff --git a/src/onebot/action/extends/SetGroupSign.ts b/src/onebot/action/extends/SetGroupSign.ts index 9e87446b..7854e57c 100644 --- a/src/onebot/action/extends/SetGroupSign.ts +++ b/src/onebot/action/extends/SetGroupSign.ts @@ -20,3 +20,6 @@ export class SetGroupSign extends BaseAction { return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id); } } +export class SendGroupSign extends SetGroupSign { + actionName = ActionName.SendGroupSign; +} \ No newline at end of file diff --git a/src/onebot/action/index.ts b/src/onebot/action/index.ts index 72b96d9e..ecdd2418 100644 --- a/src/onebot/action/index.ts +++ b/src/onebot/action/index.ts @@ -92,7 +92,7 @@ import { GetGroupFileUrl } from "@/onebot/action/file/GetGroupFileUrl"; import { GetPacketStatus } from "@/onebot/action/packet/GetPacketStatus"; import { FriendPoke } from "@/onebot/action/user/FriendPoke"; import { GetCredentials } from './system/GetCredentials'; -import { SetGroupSign } from './extends/SetGroupSign'; +import { SendGroupSign, SetGroupSign } from './extends/SetGroupSign'; import { GoCQHTTPGetGroupAtAllRemain } from './go-cqhttp/GetGroupAtAllRemain'; import { GoCQHTTPCheckUrlSafely } from './go-cqhttp/GoCQHTTPCheckUrlSafely'; import { GoCQHTTPGetModelShow } from './go-cqhttp/GoCQHTTPGetModelShow'; @@ -125,6 +125,7 @@ export function createActionMap(obContext: NapCatOneBot11Adapter, core: NapCatCo new TranslateEnWordToZn(obContext, core), new GetGroupRootFiles(obContext, core), new SetGroupSign(obContext, core), + new SendGroupSign(obContext, core), // onebot11 new SendLike(obContext, core), new GetMsg(obContext, core), diff --git a/src/onebot/action/types.ts b/src/onebot/action/types.ts index effd446a..05907312 100644 --- a/src/onebot/action/types.ts +++ b/src/onebot/action/types.ts @@ -136,6 +136,8 @@ export enum ActionName { GetGroupIgnoredNotifies = 'get_group_ignored_notifies', SetGroupSign = "set_group_sign", + SendGroupSign = "send_group_sign", + GetMiniAppArk = "get_mini_app_ark", // UploadForwardMsg = "upload_forward_msg", GetAiRecord = "get_ai_record",