ActionRow

ActionRow

Helps to construct an action row for a message.

Constructor

new ActionRow()

Description:
  • Creates an action row.

Source:

Methods

addComponent(component) → {ActionRow}

Description:
  • Adds a component to the action row.

Source:
Parameters:
Name Type Description
component Button | Dropdown

A component to add to the action row.

Returns:
Type
ActionRow

toJSON() → {Object}

Description:
  • Returns the correct Discord format for an action row.

Source:
Returns:
Type
Object