Skip to content

Flight 4.2.0

Latest
Compare
Choose a tag to compare
@devoxin devoxin released this 17 Feb 16:57
· 1 commit to master since this release

Fixes

  • Map float to double internally to support Float type parameters in commands for slash commands.

Additions

  • Crude support for autocomplete on parameters using @Autocomplete("nameOfAutocompleteMethod")
  • Rudimentary support for pre-defined choices on arguments.
  • Added guildOnly boolean to @SubCommand
    • This boolean isn't synced with Discord at the time of writing due to limitations with slash commands. Only top-level commands can be flagged as guild-only, so this is implemented as a client-side check.

Changes

  • Changed SlashContext#respond0 to always return a value, which carries over to public calling functions.
  • Argument#parameter is now a public field.
  • Deprecated BadArgument#original in favour of Throwable#cause
  • Changed ObjectStorage to extend MutableMap to improve usability.
  • Changed RoleParser to allow specifying the @everyone role without pinging.
    • Users may write "everyone" to trigger this behaviour.