Skip to content

v3.0.0-alpha.4 | Localization extensions, service priorities

Pre-release
Pre-release
Compare
Choose a tag to compare
@freya022 freya022 released this 13 Aug 20:32
a44f0bb

Overview

Improved the extensibility of the Localization API, service types of interfaced services are added automatically, and added service priority.

Fixes

Changes

  • Renamed FirstReadyEvent to FirstGuildReadyEvent
  • Improved extension of the Localization API, more details here
  • Service types of interfaced services are now added automatically
    • If you still have a @ServiceType used for it, you will be warned
  • Application commands will not be updated if there is an error on the initial update (i.e., on startup)
  • Improved exception when an option annotation was possibly forgotten
  • Bundles with a -default postfix (between the base name and the locale tag) are read by default
    • The "default" bundle is overridden by existing bundles
  • Reworked interaction filters
    • Uses interfaced services and coroutines
    • All filters are now ran before their targets gets executed

Additions

  • Added extensions to MessageCreateData and MessageEditData
  • Added suppressContentWarning to temporarily suppress message content intent warnings
    • This is useful if you read the content of message context commands, but without having the MESSAGE_CONTENT intent
  • Added namedDefaultScope to easily create a CoroutineScope with incrementally named threads
  • Added readResource, withResource and readResourceAsString to read resources relative to the caller class
  • Added getValue operator on ServiceContainer (enables you to use the by operator to get a service)
  • Added service priority
    • Either on @BService or with @ServicePriority
  • Added Class overloads for functions which accepted KClass
  • Added logs of annotated commands being excluded by @Test / @CommandId
  • Check autocomplete parameters missing from slash commands
  • Added an error when invalid component IDs are used

Removals

  • Removed Gson

Full Changelog: v3.0.0-alpha.3...v3.0.0-alpha.4