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, SlashCommandDefinition.CooldownDefinition, StringSelectMenuDefinition, StringSelectMenuDefinition.MenuOptionDefinition

The common interface for all interaction definitions and their sub parts, such as parameters or text inputs, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    The id for this definition.
    The human-readable name of this definition.
  • Method Details

    • definitionId

      default String definitionId()
      The id for this definition. Per default this is the hash code of the Object.toString() method.
    • displayName

      String displayName()
      The human-readable name of this definition.