Interface SectionContentComponent
- All Superinterfaces:
Component
- All Known Subinterfaces:
SectionContentComponentUnion,TextDisplay
Represents a component that can be added to a
Section, this includes:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.Component
Component.Type -
Method Summary
Modifier and TypeMethodDescriptionwithUniqueId(int uniqueId) Creates a new component with the provided numeric ID.Methods inherited from interface net.dv8tion.jda.api.components.Component
getType, getUniqueId, isMessageCompatible, isModalCompatible
-
Method Details
-
withUniqueId
Description copied from interface:ComponentCreates 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:
withUniqueIdin interfaceComponent- Parameters:
uniqueId- The new ID; must be higher or equal to 1- Returns:
- The new component
-