Interface ComponentDefinition<T>

All Superinterfaces:
CustomIdJDAEntity<T>, Definition, InteractionDefinition, com.github.kaktushose.jda.commands.definitions.features.internal.Invokable, JDAEntity<T>
All Known Subinterfaces:
SelectMenuDefinition<T>
All Known Implementing Classes:
ButtonDefinition, EntitySelectMenuDefinition, StringSelectMenuDefinition

public sealed interface ComponentDefinition<T> extends InteractionDefinition, JDAEntity<T>, CustomIdJDAEntity<T> permits ButtonDefinition, SelectMenuDefinition<T>
Common interface for component interaction definitions.
See Also:
  • Method Details

    • clazzDescription

      @NotNull @NotNull ClassDescription clazzDescription()
      The ClassDescription of the declaring class of the methodDescription()
      Specified by:
      clazzDescription in interface com.github.kaktushose.jda.commands.definitions.features.internal.Invokable
    • methodDescription

      @NotNull @NotNull MethodDescription methodDescription()
      The MethodDescription of the method this definition is bound to
      Specified by:
      methodDescription in interface com.github.kaktushose.jda.commands.definitions.features.internal.Invokable