Interface JDACommandHandler

All Superinterfaces:
CommandHandler
All Known Implementing Classes:
JDAHandler

public interface JDACommandHandler extends CommandHandler
Represents JDA's command handler implementation.
  • Method Details

    • getJDA

      @NotNull @NotNull net.dv8tion.jda.api.JDA getJDA()
      Returns the JDA instance maintained by this command handler.
      Returns:
      The JDA instance
    • create

      @NotNull static @NotNull JDACommandHandler create(@NotNull @NotNull net.dv8tion.jda.api.JDA jda)
      Creates a new JDACommandHandler for the given JDA instance.

      This will automatically create slash commands.

      Parameters:
      jda - JDA to create for
      Returns:
      The JDA command handler
    • create

      @NotNull static @NotNull JDACommandHandler create(@NotNull @NotNull net.dv8tion.jda.api.JDA jda, String prefix)
      Creates a new JDACommandHandler for the given JDA instance, and listens to the given prefix.
      Parameters:
      jda - JDA to create for
      prefix - The command prefix
      Returns:
      The JDA command handler