Carbon
CoreClasses

Row

Type Parameters

Type ParameterDefault type
T extends BaseComponentBaseComponent

Constructors

new Row()

new Row<T>(components?): Row<T>

Parameters

ParameterType
components?T[]

Returns

Row<T>

Properties

PropertyTypeDefault valueDescription
componentsT[][]The components in the action row

Methods

addComponent()

addComponent(component): void

Add a component to the action row

Parameters

ParameterTypeDescription
componentTThe component to add

Returns

void


removeAllComponents()

removeAllComponents(): void

Remove all components from the action row

Returns

void


removeComponent()

removeComponent(component): void

Remove a component from the action row

Parameters

ParameterTypeDescription
componentTThe component to remove

Returns

void


serialize()

serialize(): APIActionRowComponent<APIActionRowComponentTypes>

Returns

APIActionRowComponent<APIActionRowComponentTypes>

On this page

Edit on GitHub