Class ActionRowBuilder

    • Constructor Detail

      • ActionRowBuilder

        public ActionRowBuilder​()
    • Method Detail

      • addComponents

        public ActionRowBuilder addComponents​(LowLevelComponent... components)
        Add multiple low-level component builders.
        Parameters:
        components - The low-level components.
        Returns:
        The builder instance to chain methods.
      • addComponents

        public ActionRowBuilder addComponents​(List<LowLevelComponent> components)
        Add a list containing low-level components builders.
        Parameters:
        components - The list containing low-level components.
        Returns:
        The builder instance to chain methods.
      • copy

        public ActionRowBuilder copy​(ActionRow actionRow)
        Copy an action row into this action row builder's values.
        Parameters:
        actionRow - The action row to copy.
        Returns:
        The builder instance to chain methods.
      • removeComponent

        public ActionRowBuilder removeComponent​(LowLevelComponent component)
        Remove a low-level component from the ActionRow.
        Parameters:
        component - The low-level component being removed.
        Returns:
        The builder instance to chain methods.
      • removeComponent

        public ActionRowBuilder removeComponent​(int index)
        Remove a low-level component from the ActionRow.
        Parameters:
        index - The index placement to remove.
        Returns:
        The builder instance to chain methods.
      • removeComponent

        public ActionRowBuilder removeComponent​(String customId)
        Remove a low-level component from the ActionRow.
        Parameters:
        customId - The low-level component's identifier.
        Returns:
        The builder instance to chain methods.
      • getComponents

        public List<LowLevelComponent> getComponents​()
        Get the low-level components of this action row.
        Returns:
        A list of components.
      • build

        public ActionRow build​()
        Creates a ActionRow instance with the given values.
        Returns:
        The created action row instance.