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
    net.dv8tion.jda.api.interactions.commands.build.SubcommandData
    Gets the subcommand data required for registering this subcommand with Discord.
  • Method Details

    • getSubcommand

      net.dv8tion.jda.api.interactions.commands.build.SubcommandData getSubcommand()
      Gets the subcommand data required for registering this subcommand with Discord.
      Returns:
      The SubcommandData representing this subcommand's name, description, and options.