From d6ebe07ee7d3cc088a6fec8bba505fef2423a823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Susa=C3=B1a?= Date: Mon, 24 Jul 2023 14:09:53 -0400 Subject: [PATCH] fix(helpers): error action row constructor --- packages/helpers/src/components/ActionRow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/helpers/src/components/ActionRow.ts b/packages/helpers/src/components/ActionRow.ts index 379c1ae..a46355b 100644 --- a/packages/helpers/src/components/ActionRow.ts +++ b/packages/helpers/src/components/ActionRow.ts @@ -3,7 +3,7 @@ import { MessageComponents, createComponent } from "../Utils"; import { BaseComponent } from "./BaseComponent"; export class MessageActionRow extends BaseComponent> { - constructor({ components, ...data }: Partial>) { + constructor({ components, ...data }: Partial> = {}) { super({ ...data, type: ComponentType.ActionRow }); this.components = (components?.map(createComponent) ?? []) as T[]; }