ActionRow

export class ActionRow<ComponentType extends MessageActionRowComponent | ModalActionRowComponent> extends Component<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>>
export class ActionRow<ComponentType extends MessageActionRowComponent | ModalActionRowComponent> extends Component<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>>
Represents an action row
NameConstraintsOptionalDefaultDescription
ComponentTypeMessageActionRowComponent | ModalActionRowComponentNoNone
Readonly
components:ComponentType[]
The components in this action row
The API data associated with this component
Inherited from Component
Readonly
The type of the component
Inherited from Component
equals(other):boolean
Whether or not the given components are equal
NameTypeOptionalDescription
otherthis | APIActionRowComponentNoThe component to compare against
Inherited from Component
DeprecatedStatic
from(other):ActionRowBuilder
Deprecated
Creates a new action row builder from JSON data
NameTypeOptionalDescription
otherActionRowBuilder | ActionRow | APIActionRowComponentNoThe other data
toJSON():APIActionRowComponent<ReturnType<ComponentType['toJSON']>>
Returns the API-compatible JSON for this component