createComponentBuilder

export function createComponentBuilder<Type extends keyof MappedComponentBuilderTypes>( data: APIMessageComponent & { type: Type },): MappedComponentBuilderTypes[Type];
export function createComponentBuilder<Type extends keyof MappedComponentBuilderTypes>( data: APIMessageComponent & { type: Type },): MappedComponentBuilderTypes[Type];
Transforms API data into a component builder
NameConstraintsOptionalDefaultDescription
Typekeyof MappedComponentBuilderTypesNoNone
NameTypeOptionalDescription
dataAPIMessageComponent & { type: Type }NoThe data to create the component from