Interface CommandDefinition
- All Superinterfaces:
Definition, InteractionDefinition, Invokable, JDAEntity<CommandData>
- All Known Implementing Classes:
ContextCommandDefinition, SlashCommandDefinition
public sealed interface CommandDefinition
extends InteractionDefinition, JDAEntity<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 TypeMethodDescriptionTheCommand.Typeof 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
Command.Type commandType()TheCommand.Typeof this command.
-