export declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent>The base component builder that contains common symbols for all sorts of components.
Type Parameters
optionalDataType? extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>
The type of internal API data that is stored within the component
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
abstract toJSON() : AnyAPIActionRowComponent
Serializes this builder to API-compatible JSON data.