Skip to content

Flight 1.4.0

Compare
Choose a tag to compare
@devoxin devoxin released this 22 Dec 17:37
· 90 commits to master since this release
9d75dc2

Another breaking change (although this one was definitely needed!)

Added

  • Context.cleanContent.
  • Quick-start guide in README.md.

Changed

  • Reflection operations on command discovery have been refactored to use Kotlin classes. This allows Flight to detect whether a command is async based on the presence of the suspend keyword. This also allows checking for Optional parameters based on whether they're nullable (as denoted by the presence of the ? character following the parameter type.).

    • As a result, @Async and @Optional annotations have been removed.
    • BREAKING CHANGE
  • Cleaned up methods in Context.

    • Renamed embed and upload to send for consistency
    • All send methods now return CompletableFuture<Message>.
    • BREAKING CHANGE