This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
v2.0.0
[2.0.0] - 2021-13-05
Highlight Features
- Templates: apply styles across entire menus by using the new templating system
- Hooks: events can now be hooked into with your own functions
- Settings: settings are now configurable via a configuration file
- Documentation: the API docs have been reworked, a book has been added with lots of detailed information, and several
new examples were added (additionally, all old examples were updated).
Added
- Session handling has been completely rewritten. This technically will not be fully functional until v2.1, but from an
external view, it will work the exact same (without some of the common annoyances from before). - The new Discord
reply
feature is now supported by menus. This can be configured via settings. - Menus now support setting an initial page with a new method:
.set_initial_page()
. - Examples can now be run with a built-in bot.
Changed
- Buttons are now throttled by default to avoid filling up rate limit buckets too quickly. This was a source of much
confusion. This can be configured via settings. - Destination errors now fail gracefully.
- Fixed many bugs and optimized various logic paths.
Removed
.allow_multisession()
no longer exists. This is the default now (as per popular request), and can be configured
via settings.- Support for Python 3.7
Internal
- Poetry is now the package and build tool.
- Black is now the formatter.
- Almost all the internal code was rewritten resulting in better performance and/or cleaner code. Note that this could
mean your menus will break, if you were using any internally marked methods (prefixed with an underscore).