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
optionalPartial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType> DataType? extends
The type of internal API data that is stored within the component
external setIdid: number) : this (
id: number
Sets the id (not the custom id) for this component.
abstractexternal toJSONAnyAPIActionRowComponent () :
Serializes this builder to API-compatible JSON data.