StaticgetShows modal to user and recieve the input.
The interaction to show the modal to. Must be a command or button interaction.
The fields submitted by the user in the modal.
StaticgetReturns a new ModalBuilder that was created from the modal options and components.
StaticoverrideReturns a new ModalBuilder with the specified options and component values merged with the default options and components defined in the class.
The options to merge with the default options.
The component values to merge with the default components. The customId property is used to match the values with the correct components, and the type property is used to determine which type of component the value is for.
The base class for modals created with the Modal decorator. This class is used to create a modal from the options and components defined in the class, and to override the default options and component values with new options and values when creating the modal.
Example