fix & refactor: pass actions through constructor
This commit is contained in:
1 parent
28930fdad4
commit
b99fb247ac
7 files changed
+77
-128
No files matched your search
@@ -162,7 +162,7 @@ export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContex
|
||||
new FetchCustomFace(onebotContext, coreContext),
|
||||
new GoCQHTTPUploadPrivateFile(onebotContext, coreContext),
|
||||
];
|
||||
const actionMap = new Map<string, BaseAction<any, any>>();
|
||||
const actionMap = new Map();
|
||||
for (const action of actionHandlers) {
|
||||
actionMap.set(action.actionName, action);
|
||||
actionMap.set(action.actionName + '_async', action);
|
||||
|
||||
Reference in new issue
Block a user