Interface SubcommandRegistry


public interface SubcommandRegistry
An interface used to register and define Discord slash subcommands. Classes implementing this interface must provide the necessary data to build a subcommand.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the subcommand data required for registering this subcommand with Discord.
  • Method Details

    • getSubcommand

      SubcommandData getSubcommand()
      Gets the subcommand data required for registering this subcommand with Discord.
      Returns:
      The SubcommandData representing this subcommand's name, description, and options.