Abstract

ComponentBuilder

export declare abstract class ComponentBuilder<Component extends AnyAPIActionRowComponent> implements JSONEncodable<Component>
export declare abstract class ComponentBuilder<Component extends AnyAPIActionRowComponent> implements JSONEncodable<Component>
The base component builder that contains common symbols for all sorts of components.

Implements

JSONEncodable<Component>
NameConstraintsOptionalDefaultDescription
ComponentAnyAPIActionRowComponentNoThe type of API data that is stored within the builder
Abstract
toJSON(validationOverride?):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.
NameTypeOptionalDescription
validationOverridebooleanYesForce validation to run/not run regardless of your global preference