mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
Add setComponents method to Modal Builder. (#167)
* refactor: change method name for MentionableSelectMenu builder * refactor: change jsdoc comments * feat: add setcomponents method to modal
This commit is contained in:
parent
71a145612d
commit
2bf75715c8
@ -46,6 +46,16 @@ export class Modal<T extends ModalBuilderComponents = TextInput> {
|
||||
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<T>[]): this {
|
||||
this.components = [...component];
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the title of the modal.
|
||||
* @param title - The title of the modal.
|
||||
|
Loading…
x
Reference in New Issue
Block a user