Interface ContainerChildComponent

All Superinterfaces:
Component
All Known Subinterfaces:
ActionRow, ContainerChildComponentUnion, FileDisplay, MediaGallery, Section, Separator, TextDisplay
All Known Implementing Classes:
ActionRowImpl, FileDisplayFileUpload, FileDisplayImpl, MediaGalleryImpl, SectionImpl, SeparatorImpl, TextDisplayImpl, UnknownComponentImpl

public interface ContainerChildComponent extends Component
Represents a component that can be added to a Container, this includes:
  • Method Details

    • withUniqueId

      @Nonnull ContainerChildComponent withUniqueId(int uniqueId)
      Description copied from interface: Component
      Creates a new component with the provided numeric ID.
      If no ID is set, Discord will generate IDs incrementally starting from 1 and will not use existing IDs from the same message/modal.
      Specified by:
      withUniqueId in interface Component
      Parameters:
      uniqueId - The new ID; must be higher or equal to 1
      Returns:
      The new component