Preview deployment
export class ActionRow<ComponentType extends MessageActionRowComponent | ModalActionRowComponent> extends Component<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>>

Represents an action row

Type Parameters

readonly
components : ComponentType[]

The components in this action row

The API data associated with this component

Inherited from: Component

readonly
type : APIActionRowComponent['type']

The type of the component

Inherited from: Component

equals(
other: this | APIActionRowComponent
) : boolean

Whether or not the given components are equal

Inherited from: Component

Creates a new action row builder from JSON data

toJSON() : APIActionRowComponent<ReturnType<ComponentType['toJSON']>>

Returns the API-compatible JSON for this component