Skip to content

Commit

Permalink
build: 1.3.5-beta35
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed May 18, 2024
1 parent c466df8 commit d3a025e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ interface Payload{
operation: QuickAction
}

export class GoCQHTTHandleQuickOperation extends BaseAction<Payload, null>{
actionName = ActionName.GoCQHTTP_HandleQuickOperation
export class GoCQHTTHandleQuickAction extends BaseAction<Payload, null>{
actionName = ActionName.GoCQHTTP_HandleQuickAction
protected async _handle(payload: Payload): Promise<null> {
handleQuickOperation(payload.context, payload.operation).then().catch(log);
return null
Expand Down
4 changes: 3 additions & 1 deletion src/onebot11/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +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';

export const actionHandlers = [
new RebootNormol(),
Expand Down Expand Up @@ -116,7 +117,8 @@ export const actionHandlers = [
new GoCQHTTPUploadGroupFile(),
new GoCQHTTPGetGroupMsgHistory(),
new GoCQHTTGetForwardMsgAction(),
new GetFriendMsgHistory()
new GetFriendMsgHistory(),
new GoCQHTTHandleQuickAction()
];

function initActionMap() {
Expand Down
2 changes: 1 addition & 1 deletion src/onebot11/action/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export enum ActionName {
CleanCache = 'clean_cache',
GetCookies = 'get_cookies',
// 以下为go-cqhttp api
GoCQHTTP_HandleQuickOperation = ".handle_quick_operation",
GoCQHTTP_HandleQuickAction = ".handle_quick_operation",
GetGroupHonorInfo = 'get_group_honor_info',
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
GoCQHTTP_SendGroupNotice = '_send_group_notice',
Expand Down

0 comments on commit d3a025e

Please sign in to comment.