Interface CommandDefinition
- All Superinterfaces:
Definition, InteractionDefinition, Invokable, JDAEntity<net.dv8tion.jda.api.interactions.commands.build.CommandData>
- All Known Implementing Classes:
ContextCommandDefinition, SlashCommandDefinition
public sealed interface CommandDefinition
extends InteractionDefinition, JDAEntity<net.dv8tion.jda.api.interactions.commands.build.CommandData>
permits ContextCommandDefinition, SlashCommandDefinition
Common interface for command interaction definitions.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordStores the configuration values for registering commands.Nested classes/interfaces inherited from interface InteractionDefinition
InteractionDefinition.ReplyConfig -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.interactions.commands.Command.TypeTheCommand.Typeof this command.net.dv8tion.jda.api.interactions.commands.localization.LocalizationFunctionTheLocalizationFunctionto use for this command.name()The name of the command.Methods inherited from interface Definition
displayNameMethods inherited from interface InteractionDefinition
definitionId, permissionsMethods inherited from interface Invokable
classDescription, invoke, methodDescriptionMethods inherited from interface JDAEntity
toJDAEntity
-
Method Details
-
name
String name()The name of the command. -
commandConfig
CommandDefinition.CommandConfig commandConfig() -
commandType
net.dv8tion.jda.api.interactions.commands.Command.Type commandType()TheCommand.Typeof this command. -
localizationFunction
net.dv8tion.jda.api.interactions.commands.localization.LocalizationFunction localizationFunction()TheLocalizationFunctionto use for this command.
-