Skip to content

Commit

Permalink
Version bump and changelog for 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Soheab committed Feb 18, 2024
1 parent 16848c0 commit 36a4075
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion discord/ext/modal_paginator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .core import ModalPaginator as ModalPaginator, PaginatorModal as PaginatorModal
from .custom_button import CustomButton as CustomButton

__version__ = "1.2.0a"
__version__ = "1.2.0"
__author__ = "Soheab"
__license__ = "MPL-2.0"
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "modal-paginator"
copyright = "2023, Soheab_"
author = "Soheab_"
release = "1.1.0a"
release = "1.2.0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
31 changes: 31 additions & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,37 @@ Changelog
This page keeps a detailed human friendly rendering of what's new and changed
in specific versions.

v1.2.0
-------

Features
~~~~~~~~

- :commit:`8c329efcc3fc4ea69fae03d0e31e39f48b3e5280` Added two new kwargs to :meth:`.ModalPaginator.send` :

* ``add_page_string``

* ``return_message``

See the kwarg's docstring for more information.

- :commit:`4b959be5a52ec7c763e300a2a631f180fc9509c1` :meth:`.ModalPaginator.from_text_inputs` can now take a list of :class:`str`
(or mixed with :class:`.discord.ui.TextInput`) instead of a list of :class:`.discord.ui.TextInput`. This is useful
if you don't want to construct a :class:`.discord.ui.TextInput`.

- :commit:`f7a164f7503e36e5c1aee0480d0d9630478104ba` Added a new property to :class:`.PaginatorModal`:

* :attr:`.PaginatorModal.text_inputs`

This is also used in :meth:`.ModalPaginator.text_inputs`.

See the property's docstring for more information.

Bug Fixes
~~~~~~~~~

- :commit:`8c329efcc3fc4ea69fae03d0e31e39f48b3e5280` ``**kwargs`` in :meth:`.ModalPaginator.send` are now properly passed to the destination.

v1.1.1
------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ packages = ["discord", "discord.ext", "discord.ext.modal_paginator"]

[project.urls]
homepage = "https://github.com/Soheab/modal-paginator"
# documentation = "...""
documentation = "https://discord-ext-modal-paginator.readthedocs.io/"
repository = "https://github.com/Soheab/modal-paginator"

[tool.setuptools.dynamic]
Expand Down

0 comments on commit 36a4075

Please sign in to comment.