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 Details

    • toJDAEntity

      T toJDAEntity(CustomId customId)
      Transforms this Definition into a JDA entity of the given type T.
      Parameters:
      customId - the CustomId to use to build this JDA entity
      Returns:
      a JDA entity of type T