Interface CustomIdJDAEntity<T>
- All Superinterfaces:
Definition
- All Known Subinterfaces:
ComponentDefinition<T>
,SelectMenuDefinition<T>
- All Known Implementing Classes:
ButtonDefinition
,EntitySelectMenuDefinition
,ModalDefinition
,StringSelectMenuDefinition
public sealed interface CustomIdJDAEntity<T>
extends Definition
permits ComponentDefinition<T>, ModalDefinition
Indicates that the implementing
Definition
can be transformed into a JDA entity that has a CustomId
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiontoJDAEntity
(@NotNull CustomId customId) Transforms thisDefinition
into a JDA entity of the given typeCustomIdJDAEntity
.Methods inherited from interface com.github.kaktushose.jda.commands.definitions.Definition
definitionId, displayName
-
Method Details
-
toJDAEntity
Transforms thisDefinition
into a JDA entity of the given typeCustomIdJDAEntity
.- Parameters:
customId
- theCustomId
to use to build this JDA entity- Returns:
- a JDA entity of type
CustomIdJDAEntity
-