From 5510fb473f936f41b5ce5df4c7a05b76c0c69085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 30 May 2024 12:02:47 +0800 Subject: [PATCH] fix: typo --- src/onebot11/action/go-cqhttp/GetForwardMsg.ts | 2 +- src/onebot11/action/go-cqhttp/QuickAction.ts | 2 +- src/onebot11/action/index.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts index b1a8b470..3d02db57 100644 --- a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts +++ b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts @@ -21,7 +21,7 @@ interface Response { messages: (OB11Message & { content: OB11MessageData })[]; } -export class GoCQHTTGetForwardMsgAction extends BaseAction { +export class GoCQHTTPGetForwardMsgAction extends BaseAction { actionName = ActionName.GoCQHTTP_GetForwardMsg; PayloadSchema = SchemaData; protected async _handle(payload: Payload): Promise { diff --git a/src/onebot11/action/go-cqhttp/QuickAction.ts b/src/onebot11/action/go-cqhttp/QuickAction.ts index 49d90988..cf1926cc 100644 --- a/src/onebot11/action/go-cqhttp/QuickAction.ts +++ b/src/onebot11/action/go-cqhttp/QuickAction.ts @@ -8,7 +8,7 @@ interface Payload{ operation: QuickAction } -export class GoCQHTTHandleQuickAction extends BaseAction{ +export class GoCQHTTPHandleQuickAction extends BaseAction{ actionName = ActionName.GoCQHTTP_HandleQuickAction; protected async _handle(payload: Payload): Promise { handleQuickOperation(payload.context, payload.operation).then().catch(log); diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index e3960051..3cbae143 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -43,7 +43,7 @@ import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar'; import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile'; import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory'; import GetFile from './file/GetFile'; -import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg'; +import { GoCQHTTPGetForwardMsgAction } from './go-cqhttp/GetForwardMsg'; import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory'; import { GetCookies } from './user/GetCookies'; import { SetMsgEmojiLike } from '@/onebot11/action/msg/SetMsgEmojiLike'; @@ -56,7 +56,7 @@ import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; import { Reboot, RebootNormol } from './system/Reboot'; import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; -import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; +import { GoCQHTTPHandleQuickAction } from './go-cqhttp/QuickAction'; import { GetGroupSystemMsg } from './group/GetGroupSystemMsg'; import { GetOnlineClient } from './go-cqhttp/GetOnlineClient'; import { IOCRImage, OCRImage } from './extends/OCRImage'; @@ -135,9 +135,9 @@ export const actionHandlers = [ new GoCQHTTPMarkMsgAsRead(), new GoCQHTTPUploadGroupFile(), new GoCQHTTPGetGroupMsgHistory(), - new GoCQHTTGetForwardMsgAction(), + new GoCQHTTPGetForwardMsgAction(), new GetFriendMsgHistory(), - new GoCQHTTHandleQuickAction(), + new GoCQHTTPHandleQuickAction(), new GetGroupSystemMsg() ];