Interface ItemComponent

All Superinterfaces:
Component, SerializableData
All Known Subinterfaces:
ActionComponent, Button, SelectMenu

public interface ItemComponent extends Component
Component which can be inserted into a LayoutComponent.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.dv8tion.jda.api.interactions.components.Component

    Component.Type
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    How many of these components can be added to one ActionRow.

    Methods inherited from interface net.dv8tion.jda.api.interactions.components.Component

    getType

    Methods inherited from interface net.dv8tion.jda.api.utils.data.SerializableData

    toData
  • Method Details

    • getMaxPerRow

      default int getMaxPerRow()
      How many of these components can be added to one ActionRow.
      Returns:
      The maximum amount an action row can contain