Interface MaincommandRegistry


public interface MaincommandRegistry
An interface used to register and define main Discord slash commands. Classes implementing this interface must provide the necessary data to build a top-level command.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.dv8tion.jda.api.interactions.commands.build.CommandData
    Gets the command data required for registering this main command with Discord.
  • Method Details

    • getCommand

      net.dv8tion.jda.api.interactions.commands.build.CommandData getCommand()
      Gets the command data required for registering this main command with Discord.
      Returns:
      The CommandData representing this command's name, description, options, and subcommands.