Interface SlashCommandJavacord
-
- All Superinterfaces:
Command<SlashCommandInteraction>
public interface SlashCommandJavacord extends Command<SlashCommandInteraction>
A command that can be triggered by slash commands in Javacord.When injecting a
List<SlashCommandBuilder>
, implementations of this interface must provide a description through the@Description
annotation or an overwrittenCommand.getDescription()
method and all aliases have to consist of one to three slash separated parts, so either"command"
,"command/subcommand"
, or"command/subcommand-group/subcommand"
.
-
-
Field Summary
-
Fields inherited from interface net.kautler.command.api.Command
PARAMETER_SEPARATOR_CHARACTER, PARAMETER_SEPARATOR_PATTERN
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<SlashCommandOption>
getOptions()
Returns the slash command options of this command that should be used when registering the command.-
Methods inherited from interface net.kautler.command.api.Command
execute, getAliases, getDescription, getRestrictionChain, getUsage, isAsynchronous
-
-
-
-
Method Detail
-
getOptions
default List<SlashCommandOption> getOptions()
Returns the slash command options of this command that should be used when registering the command.The default implementation of this method returns an empty list.
- Returns:
- the slash command options of this command
-
-