componentFactory
Return a new component instance based on the component type.
Parameters
Parameter | Type | Description |
---|---|---|
component | APIMessageActionRowComponent | The component to create. |
Returns
ActionRowMessageComponents
| BaseComponent
<ActionRowMessageComponents
["type"
]>
The component instance.