What's Changed
✨ Features
- Added rotations via the
Rotation
enum.- These represent the periods in which statistics (as well as other parts of the server) rotate.
- The methods
nextRotation
andpreviousRotation
can be used to extract information about when these rotations change.
- Added
rotationValue
onStatistics
for fetching the value of a statistic in a given rotation. - Added
statistic
query to fetch a statistic by it's key. - Added statistic leaderboards.
- These can be queried using the
leaderboard
method onStatistic
. - The returned list contains the rank and value of each entry in the leaderboard.
- The amount field is limited to 20.
- These can be queried using the
🔧 Changes
- The
value
method onStatistics
has been deprecated for removal. Use therotationValue
method instead. - Four new statistics have been added:
crown_level
,trophies
,trophies_skill
andtrophies_style
.
Full Changelog: v24.05.02...v24.05.06