Skip to content

Lamp v3.1.2

Compare
Choose a tag to compare
@Revxrsal Revxrsal released this 14 Jan 13:25
  1. Introduce DefaultFor to better express and control the default action logic
  2. Optional now takes a def() property for the default value, as a full replacement to @Default.
  3. @NotSender will automatically be inferred on arguments that have certain annotations which explicitly imply that the argument is not a sender (for example, @Optional Player, or @Switch("p") Player clearly mean this is a parameter and not a sender).
  4. ArgumentParser has been deprecated, and scheduled for removal in v3.1.4
  5. commandHandler#parseArguments() and commandHandler#parseArgumentsForCompletion() have been deprecated, and are scheduled for removal in v3.1.4. As a replacement, use ArgumentStack#parse() and ArgumentStack#parseForAutoCompletion() respectively.
  6. Consecutive spaces will not be ignored, and will be parsed just like normal arguments. This is to get functionality as similar to Brigadier as possible, and adhere to the common standards in command execution frameworks.
  7. Added functionality to @GuildOnly annotation in JDA
  8. Documented annotations in JDA