mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: missing onAfterRun
This commit is contained in:
parent
69867d22ca
commit
62380def98
@ -175,10 +175,12 @@ export class ComponentHandler extends BaseHandler {
|
||||
component.onInternalError ??= this.client.options?.modals?.defaults?.onInternalError;
|
||||
component.onMiddlewaresError ??= this.client.options?.modals?.defaults?.onMiddlewaresError;
|
||||
component.onRunError ??= this.client.options?.modals?.defaults?.onRunError;
|
||||
component.onAfterRun ??= this.client.options?.modals?.defaults?.onAfterRun;
|
||||
} else {
|
||||
component.onInternalError ??= this.client.options?.components?.defaults?.onInternalError;
|
||||
component.onMiddlewaresError ??= this.client.options?.components?.defaults?.onMiddlewaresError;
|
||||
component.onRunError ??= this.client.options?.components?.defaults?.onRunError;
|
||||
component.onAfterRun ??= this.client.options?.components?.defaults?.onAfterRun;
|
||||
}
|
||||
component.__filePath = paths[i].path;
|
||||
this.commands.push(component);
|
||||
|
Loading…
x
Reference in New Issue
Block a user