fix: missing onAfterRun

This commit is contained in:
MARCROCK22 2024-05-10 23:31:37 -04:00
parent 69867d22ca
commit 62380def98

View File

@ -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);