Creates a new section from API data.
Optional
data: Partial<APISectionComponent>The API data to create this section with
Optional
Readonly
accessoryThe accessory of this section.
Readonly
componentsThe components within this section.
Readonly
dataThe API data associated with this component.
Adds text display components to this section.
The text display components to add
Clears the id of this component, defaulting to a default incremented id.
Sets the accessory of this section to a button.
The accessory to use
Sets the id (not the custom id) for this component.
The id for this component
Sets the accessory of this section to a thumbnail.
The accessory to use
Removes, replaces, or inserts text display components for this section.
The index to start removing, replacing or inserting text display components
The amount of text display components to remove
The text display components to insert
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for a section.