Flight 1.4.0
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 forOptional
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
- As a result,
-
Cleaned up methods in
Context
.- Renamed
embed
andupload
tosend
for consistency - All
send
methods now returnCompletableFuture<Message>
. - BREAKING CHANGE
- Renamed