From 62380def9874f82a3063625936a701d4e091712d Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Fri, 10 May 2024 23:31:37 -0400 Subject: [PATCH] fix: missing onAfterRun --- src/components/handler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/handler.ts b/src/components/handler.ts index 2df9b92..3a43ef8 100644 --- a/src/components/handler.ts +++ b/src/components/handler.ts @@ -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);