MessageComponents

MessageComponents

Structure for message components.

Constructor

new MessageComponents()

Description:
  • Creates a group of message components for a message.

Source:

Methods

addActionRow(actionRow) → {MessageComponents}

Description:
  • Adds an action row to the message.

Source:
Parameters:
Name Type Description
actionRow ActionRow

Action row to add to the message.

Returns:
Type
MessageComponents

toJSON() → {Object}

Description:
  • Returns the correct Discord format for message components.

Source:
Returns:
Type
Object