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.MenuOptionDefinition
public sealed interface JDAEntity<T>
extends Definition
permits ComponentDefinition<T>, ModalDefinition.TextInputDefinition, CommandDefinition, OptionDataDefinition, StringSelectMenuDefinition.MenuOptionDefinition
Indicates that the implementing
Definition can be transformed into a JDA entity.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionTransforms thisDefinitioninto a JDA entity of the given typeT.Methods inherited from interface Definition
definitionId, displayName
-
Method Details
-
toJDAEntity
T toJDAEntity()Transforms thisDefinitioninto a JDA entity of the given typeT.- Returns:
- a JDA entity of type
T
-