diff --git a/src/builders/Modal.ts b/src/builders/Modal.ts index 8961ce9..cc83739 100644 --- a/src/builders/Modal.ts +++ b/src/builders/Modal.ts @@ -46,6 +46,16 @@ export class Modal { return this; } + /** + * Set the components to the modal. + * @param component - The components to set into the modal. + * @returns The current Modal instance. + */ + setComponents(component: ActionRow[]): this { + this.components = [...component]; + return this; + } + /** * Sets the title of the modal. * @param title - The title of the modal.