Class CommandEvent

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

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

  • Method Details

    • jdaEvent

      @NotNull public <T extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent> T jdaEvent(@NotNull @NotNull Class<T> type)
      Returns the underlying GenericCommandInteractionEvent and casts it to the given type.
      Type Parameters:
      T - a subtype of GenericCommandInteractionEvent
      Parameters:
      type - a subtype of GenericCommandInteractionEvent, like SlashCommandInteractionEvent
      Returns:
      CommandEvent