v3.0.0-alpha.4 | Localization extensions, service priorities
Pre-release
Pre-release
Overview
Improved the extensibility of the Localization API, service types of interfaced services are added automatically, and added service priority.
Fixes
- Suspending service factories are now prohibited correctly
- Fixed single-implementation interfaces services not being constrained correctly
- Fixed
BStatusChangeEvent
not having the correct old status
Changes
- Renamed
FirstReadyEvent
toFirstGuildReadyEvent
- 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
- If you still have a
- 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
- This is useful if you read the content of message context commands, but without having the
- Added
namedDefaultScope
to easily create aCoroutineScope
with incrementally named threads - Added
readResource
,withResource
andreadResourceAsString
to read resources relative to the caller class - Added
getValue
operator onServiceContainer
(enables you to use theby
operator to get a service) - Added service priority
- Either on
@BService
or with@ServicePriority
- Either on
- Added
Class
overloads for functions which acceptedKClass
- 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