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 TypeMethodDescriptionnet.dv8tion.jda.api.interactions.commands.build.CommandDataGets 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
CommandDatarepresenting this command's name, description, options, and subcommands.
-