Creates a new section from API data.
Optionaldata: Partial<APISectionComponent>The API data to create this section with
Optional ReadonlyaccessoryThe accessory of this section.
ReadonlycomponentsThe components within this section.
ReadonlydataThe 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.