class ComponentBuilder

abstract
export declare abstract class ComponentBuilder<Component extends AnyAPIActionRowComponent> implements JSONEncodable<Component>

The base component builder that contains common symbols for all sorts of components.

Type Parameters

Component extends AnyAPIActionRowComponent

The type of API data that is stored within the builder

abstract
toJSON(
validationOverride?: boolean
) : Component

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.