Package net.dv8tion.jda.api.components
Interface UnknownComponent
- All Superinterfaces:
Component
- All Known Implementing Classes:
UnknownComponentImpl
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.Type
getType()
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:Component
The type of component.- Specified by:
getType
in interfaceComponent
- Returns:
Component.Type
-
withUniqueId
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 interfaceComponent
- Parameters:
uniqueId
- The new ID; must be higher or equal to 1- Returns:
- The new component
-