Interface JDAEntity<T>
- All Superinterfaces:
Definition
- All Known Subinterfaces:
CommandDefinition
,ComponentDefinition<T>
,SelectMenuDefinition<T>
- All Known Implementing Classes:
ButtonDefinition
,ContextCommandDefinition
,EntitySelectMenuDefinition
,ModalDefinition.TextInputDefinition
,OptionDataDefinition
,SlashCommandDefinition
,StringSelectMenuDefinition
,StringSelectMenuDefinition.SelectOptionDefinition
public sealed interface JDAEntity<T>
extends Definition
permits ComponentDefinition<T>, ModalDefinition.TextInputDefinition, CommandDefinition, OptionDataDefinition, StringSelectMenuDefinition.SelectOptionDefinition
Indicates that the implementing
Definition
can be transformed into a JDA entity.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionTransforms thisDefinition
into a JDA entity of the given typeJDAEntity
.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 typeJDAEntity
.- Returns:
- a JDA entity of type
JDAEntity
-