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 TypeMethodDescriptionnet.dv8tion.jda.api.interactions.commands.build.SubcommandDataGets 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
SubcommandDatarepresenting this subcommand's name, description, and options.
-