Changelog¶
This page keeps a detailed human friendly rendering of what’s new and changed in specific versions.
v1.3.0¶
Warning
Heads up! This version is the last version that supports a lower version of discord.py than 2.5.2.
Please update your discord.py version to 2.5.2 or higher to use this extension.
Features¶
(b17db08) Added a support for
__iter__toModalPaginator. This means you can now easily iterate over all modals and their text inputs:for modal, text_inputs in paginator: ...
(6adc7b2) Added two new kwargs to
ModalPaginator.from_text_inputs():max_inputs_per_modaltitles_steps
See the kwarg’s docstring for more information.
Bug Fixes¶
(ba5e8a9) Fix a bug where it couldn’t edit it’s own message due to a semi-breaking change in discord.py 2.5.0.
v1.2.0¶
Features¶
(8c329ef) Added two new kwargs to
ModalPaginator.send():add_page_stringreturn_message
See the kwarg’s docstring for more information.
(4b959be)
ModalPaginator.from_text_inputs()can now take a list ofstr(or mixed withdiscord.ui.TextInput) instead of a list ofdiscord.ui.TextInput. This is useful if you don’t want to construct adiscord.ui.TextInput.(f7a164f) Added a new property to
PaginatorModal:This is also used in
ModalPaginator.text_inputs().See the property’s docstring for more information.
Bug Fixes¶
(8c329ef)
**kwargsinModalPaginator.send()are now properly passed to the destination.
v1.1.1¶
Miscellaneous¶
(92d852a) Bumped the minimum discord.py version required. From 2.0.0 to 2.2.0.
v1.1.0¶
Features¶
(e135420) Added the ability to have the paginator automatically “finish” the paginator. See the
ModalPaginator.auto_finishattribute for more information.(ace7bce) Added a method to have the extension construct the amount of modals needed depending on the needed
TextInputs. SeeModalPaginator.from_text_inputs()for more information.(d4111ff) Added the ability to customize the “error” message that users could get when they used a button that they weren’t supposed to use (yet). This is useful for i18n purposes or to send a friendlier message overal. See the following methods on
ModalPaginatorfor more information:
Bug Fixes¶
(2f032a5) Fix not being able to remove a “default” button using the
buttons=kwarg.
Miscellaneous¶
(228711c) You no longer have to call the original implementation of
ModalPaginator.on_finish()/ModalPaginator.on_cancel()when overriding it. It’s now called automatically.(8507c52) Refactored the custom buttons implementation to work better front and-backend.
(bc1850b) Made it so your implementation of
ModalPaginator.on_finish()/ModalPaginator.on_cancel()is called first before the default implementation.(3ecfcaf) Fix typo in the docstring of
ModalPaginator.message.(3ecfcaf) Fix the example for the
buttonskwarg onModalPaginatorin the docstring.
v1.0.0¶
First stable release!
Added the ability to customize the buttons of the paginator. See the
buttons=kwarg onModalPaginatorfor more information.
v0.0.1¶
Initial release!