In this version, the entire internals of the library has been rewritten to remove the requirement for the native library.
The new implementation is in plain Java.
Some of the removed features might be re-added in a future version.
- Raised minimum Java version to Java 16
- No macOS support for now
Core.init
was removed, because it is no longer required- Removed Managers due to deprecation:
LobbyManager
NetworkManager
- Some functions are current not implemented, these throw a
new RuntimeException("not implemented")
:ActivityManager.registerCommand
because it does not communicate with DiscordActivityManager.registerSteam
because it does not communicate with DiscordAcitvityManager.acceptRequest
because I cannot figure out how it worksUserManager.getCurrentUserPremiumType
because I don't have Discord Nitro, so I cannot test it
ActivityTimestamps.setStart
not longer resets the end timestamp, useActivityTimestamps.clearEnd
for thatActivityTimestamps.setEnd
not longer resets the start timestamp, useActivityTimestamps.clearStart
for that
- Complete rewrite of the internals (see above)
- Support for custom buttons in an activity
(see
Activity.setActivityButtonsMode
,Activity.addButton
, andActivity.removeButton
) - Support for "progress"-like activities featuring both start and end time
(see
ActivityTimestamps.setStartAndEnd
)
This big release would not have been possible without the help of various people and I am incredibly thankful for their contributions to this library!
In rough historical order:
- @Kevin-OVI for fixing the DownloadNativeLibrary example before the rewrite
- @letorbi for massive work towards the rewrite, in particular the Windows support and tons of clean-up and improvements
- @gravit0 for custom button support
- @Desoroxxx for clean-up and documentation
- @immails for Windows-specific fixes
- @RedTeaDev for implementing the
ActivityJoinEvent
- @isabelcoolaf for "progress" activities and updating part of the library to reflect latest changes by Discord