Skip to content

MessageActionRow

Represents an action row containing components, such as buttons or selects, to be added to a message.

Kind: global class

ParamTypeDescription
dataObjectThe data for the action row.
data.componentsArrayThe components to be added to the action row.

Adds one or more components to the action row.

Kind: instance method of MessageActionRow
Returns: MessageActionRow - - The action row with the new components added.

ParamTypeDescription
…componentsanyThe components to be added to the action row.

Sets the components of the action row.

Kind: instance method of MessageActionRow
Returns: MessageActionRow - - The action row with the new components set.

ParamTypeDescription
…componentsanyThe components to be set as the action row’s components.

Validates that the action row’s type is valid.

Kind: instance method of MessageActionRow
Throws:

  • TypeError If the action row’s type is invalid.

Returns the action row’s data in JSON format.

Kind: instance method of MessageActionRow
Returns: Object - - The action row’s data in JSON format.