diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c77698498..bc995ffd76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2611](https://github.com/Pycord-Development/pycord/pull/2611)) - Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`. ([#2627](https://github.com/Pycord-Development/pycord/issues/2627)) +- Fixed `AttributeError` when sending polls with `PartialWebook`. + ([#2624](https://github.com/Pycord-Development/pycord/pull/2624)) ### Changed diff --git a/README.rst b/README.rst index b91f3dea06..4867eb3c74 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,11 @@ Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for D ====== +Note +---- + +Pycord supports Python ``3.9`` - ``3.12`` + Key Features ------------ diff --git a/discord/enums.py b/discord/enums.py index 14aa54d460..91425b8cf8 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -224,6 +224,7 @@ class ChannelType(Enum): stage_voice = 13 directory = 14 forum = 15 + media = 16 def __str__(self): return self.name diff --git a/discord/types/channel.py b/discord/types/channel.py index 385b082cc3..fe5e097eca 100644 --- a/discord/types/channel.py +++ b/discord/types/channel.py @@ -45,7 +45,7 @@ class PermissionOverwrite(TypedDict): deny: str -ChannelType = Literal[0, 1, 2, 3, 4, 5, 10, 11, 12, 13] +ChannelType = Literal[0, 1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15, 16] class _BaseChannel(TypedDict): diff --git a/discord/ui/view.py b/discord/ui/view.py index 322371d080..c54cb58f13 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -126,7 +126,7 @@ class View: *items: :class:`Item` The initial items attached to this view. timeout: Optional[:class:`float`] - Timeout in seconds from last interaction with the UI before no longer accepting input. + Timeout in seconds from last interaction with the UI before no longer accepting input. Defaults to 180.0. If ``None`` then there is no timeout. Attributes diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 090f7c96f2..23b6386a7d 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -803,6 +803,12 @@ def create_user(self, data): # state parameter is artificial return BaseUser(state=self, data=data) # type: ignore + def store_poll(self, poll: Poll, message_id: int): + if self._parent is not None: + return self._parent.store_poll(poll, message_id) + # state parameter is artificial + return None + @property def http(self): if self._parent is not None: diff --git a/pyproject.toml b/pyproject.toml index abbc5290bb..3a6cebf270 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools>=62.6,<=72.2.0", + "setuptools>=62.6,<=75.4.0", "setuptools-scm>=6.2,<=8.1.0", ] build-backend = "setuptools.build_meta" diff --git a/requirements/docs.txt b/requirements/docs.txt index 986a74ae1e..335b420074 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -6,6 +6,6 @@ sphinxext-opengraph==0.9.1 sphinx-copybutton==0.5.2 furo==2024.8.6 sphinx-autodoc-typehints==2.2.3 -sphinx-intl==2.2.0 +sphinx-intl==2.3.0 typing_extensions==4.12.2 levenshtein==0.26.1