Interface ItemComponent
- All Superinterfaces:
Component
,SerializableData
- All Known Subinterfaces:
ActionComponent
,Button
,EntitySelectMenu
,SelectMenu
,StringSelectMenu
,TextInput
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
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 oneActionRow
.- Returns:
- The maximum amount an action row can contain
-
isModalCompatible
default boolean isModalCompatible()Description copied from interface:Component
Whether this Component is compatible withModals
.
If the component in question is aLayoutComponent
, this also checks every component inside it.- Specified by:
isModalCompatible
in interfaceComponent
- Returns:
- True, if this Component is compatible with modals.
-
isMessageCompatible
default boolean isMessageCompatible()Description copied from interface:Component
Whether this Component is compatible withMessages
.
If the component in question is aLayoutComponent
, this also checks every component inside it.- Specified by:
isMessageCompatible
in interfaceComponent
- Returns:
- True, if this Component is compatible with messages.
-