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
    Gets the command data required for registering this main command with Discord.
  • Method Details

    • getCommand

      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.