Class ComponentEvent

java.lang.Object
com.github.kaktushose.jda.commands.dispatching.events.Event<net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.ReplyableEvent<net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.ModalReplyableEvent<net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.interactions.ComponentEvent
All Implemented Interfaces:
Reply, net.dv8tion.jda.api.entities.ISnowflake, net.dv8tion.jda.api.interactions.Interaction

public final class ComponentEvent extends ModalReplyableEvent<net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent>
This class is a subclass of Event. It provides additional features for replying to a GenericComponentInteractionCreateEvent.
See Also:
  • Constructor Details

  • Method Details

    • jdaEvent

      public <T extends net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent> T jdaEvent(Class<T> type)
      Returns the underlying GenericComponentInteractionCreateEvent and casts it to the given type.
      Type Parameters:
      T - a subtype of GenericComponentInteractionCreateEvent
      Parameters:
      type - a subtype of GenericComponentInteractionCreateEvent, namely ButtonInteractionEvent, EntitySelectInteractionEvent or StringSelectInteractionEvent
      Returns:
      ComponentEvent