Package net.dv8tion.jda.api.components
Interface UnknownComponent
- All Superinterfaces:
Component
Represents a component which has an unknown type.
Such components can be received and serialized, but cannot be sent or modified in any way.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.Component
Component.Type -
Method Summary
Modifier and TypeMethodDescriptiondefault Component.TypegetType()The type of component.withUniqueId(int uniqueId) Creates a new component with the provided numeric ID.Methods inherited from interface net.dv8tion.jda.api.components.Component
getUniqueId, isMessageCompatible, isModalCompatible
-
Method Details
-
getType
Description copied from interface:ComponentThe type of component.- Specified by:
getTypein interfaceComponent- Returns:
Component.Type
-
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
-