seyfert
    Preparing search index...

    Class ActionRow<T>

    Represents an Action Row component in a message.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    components: FixedComponents<T>[]
    data: Partial<TYPE> = {}

    Methods

    • Adds one or more components to the Action Row.

      Parameters

      Returns this

      The updated Action Row instance.

      actionRow.addComponents(buttonComponent);
      actionRow.addComponents(buttonComponent1, buttonComponent2);
      actionRow.addComponents([buttonComponent1, buttonComponent2]);
    • Sets the components of the Action Row.

      Parameters

      Returns this

      The updated Action Row instance.

      actionRow.setComponents([buttonComponent1, buttonComponent2]);
      
    • Converts the Action Row to its JSON representation.

      Returns APIActionRowComponent<APIMessageActionRowComponent>

      The JSON representation of the Action Row.