13.0.0-rc1
版本发布时间: 2021-11-13 02:04:19
discordeno/discordeno最新发布版本:18.0.0(2023-01-13 07:50:21)
This version was a big rewrite of the library that pushed the functional programming design even further. We removed almost every form of getter and a lot of OOP stuff in the library. On top of that, we made a bunch of minor improvements and fixes as well. We are now up to date with the latest changes on the discord-api-docs repo, as well as ready to support incoming features in the next month.
Benefits
- Performance: Devs already running this version have stated their users felt the bot's become faster without being told of any changes that could effect performance. The big impact to this was most likely our decision to push the idea of Performance > Beginner friendliness. If we had to make a decision for something that either made it easier to use or better performance, we always opted for better performance.
- Memory Improvements: 70.5% decrease in memory in a bot using v13 already.
- Flexibility: Switched from
convention over configuration
toconfiguration over convention
. Previously everything was not configurable but it was defaulted to the best options possible. Now everything in the library is customizable without having to fork and modify and maintain a fork. Just plugin and override anything of your choosing. - Caching: By default, the library will no longer cache anything. The cache has been moved to a separate plugin that you can enable should you desire. (There may be some leftovers that we will continue to remove in future release candidates.)
- Benchmarking: We have added memory benchmarking as part of the unit tests that will run on each commit. This benchmark will show whether a commit increased or decreased the memory footprint of the library by processing about 50K events from discord. This will enable us to make sure the library stays highly optimized for large scale bots.