Interface Definition
- All Known Subinterfaces:
CommandDefinition, ComponentDefinition<T>, CustomIdJDAEntity<T>, InteractionDefinition, Invokable, JDAEntity<T>, SelectMenuDefinition<T>
- All Known Implementing Classes:
AutoCompleteDefinition, ButtonDefinition, ContextCommandDefinition, EntitySelectMenuDefinition, ModalDefinition, ModalDefinition.TextInputDefinition, OptionDataDefinition, OptionDataDefinition.ConstraintDefinition, SlashCommandDefinition, StringSelectMenuDefinition, StringSelectMenuDefinition.MenuOptionDefinition
public sealed interface Definition
permits CustomIdJDAEntity<T>, Invokable, JDAEntity<T>, InteractionDefinition, ModalDefinition.TextInputDefinition, OptionDataDefinition, OptionDataDefinition.ConstraintDefinition, StringSelectMenuDefinition.MenuOptionDefinition
The common interface for all interaction definitions and their sub parts, such as parameters or text inputs, etc.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe id for this definition.The human-readable name of this definition.
-
Method Details
-
definitionId
The id for this definition. Per default this is the hash code of theObject.toString()method. -
displayName
String displayName()The human-readable name of this definition.
-