Annotation Interface Param
Annotation used to add metadata, e.g. a description, to command options.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns the name of the command option.booleanReturns whether this command option is optional.Returns theOptionTypeof this command option.Returns the description of the command option.
-
Element Details
-
value
String valueReturns the description of the command option. This value will only be used for slash commands.- Returns:
- the description of the command option
- Default:
""
-
name
String nameReturns the name of the command option. Use the compiler flag-parametersto have the parameter name resolved at runtime making this field redundant.- Returns:
- the name of the command option
- Default:
""
-
optional
boolean optionalReturns whether this command option is optional. If the parameter class is anOptionalthis is automatically set to true.- Returns:
trueif this command option is optional- See Also:
- Default:
false
-
type
OptionType typeReturns theOptionTypeof this command option.- Returns:
- the
OptionTypeof this command option - Implementation Note:
- If
OptionType.UNKNOWNis passed (default value), jda-commands will interpolate the best fittingOptionType, resulting toOptionType.STRINGas a fallback.
- Default:
UNKNOWN
-