ActionRow

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