Annotation Type Description
-
@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Description
An annotation with which a description of the command can be configured. This description can for example be displayed in an own help command.When injecting a
List<SlashCommandBuilder>
anywhere, all commands implementingSlashCommandJavacord
have to provide a description.Alternatively to using this annotation the
Command.getDescription()
method can be overwritten. If that method is overwritten and this annotation is used, the method overwrite takes precedence. That method is also what should be used to retrieve the configured description.- See Also:
Command.getDescription()
-
-
Element Detail
-
value
String value
Returns the description of the annotated command.- Returns:
- the description of the annotated command
-
-