Skip to content

Commit

Permalink
fix: new class e
Browse files Browse the repository at this point in the history
  • Loading branch information
CakmLexi committed Jul 24, 2024
1 parent 1c9b399 commit 4b61a52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions jsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/event/message.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class MessageHandler extends EventHandler {
if (app.file.type === 'function' && typeof v.fnc === 'function') {
res = await v.fnc(this.e)
} else {
const cla = new (app.file.Fnc as NewMessagePlugin)()
const cla = new (app.file.Fnc as NewMessagePlugin)(this.e)
cla.e = this.e
res = await (cla[v.fnc as keyof typeof cla] as Function)(this.e) as Promise<boolean>
}
Expand Down

0 comments on commit 4b61a52

Please sign in to comment.