diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515f21e80..1a336942c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3231](https://github.com/Pycord-Development/pycord/pull/3231)) - Allow `ForumTag` to be created without an emoji. ([#3245](https://github.com/Pycord-Development/pycord/pull/3245)) +- Fix `PollAnswer.to_dict` incorrectly setting `answer_id` as a tuple instead of an int. + ([#3260](https://github.com/Pycord-Development/pycord/pull/3260)) - Fix a bug where `TextChannel.archived_threads` would ignore any limit parameter smaller than 50 and use 50 instead. ([#3266](https://github.com/Pycord-Development/pycord/pull/3266)) diff --git a/discord/poll.py b/discord/poll.py index a6878275b6..397be7ba11 100644 --- a/discord/poll.py +++ b/discord/poll.py @@ -41,7 +41,6 @@ "Poll", ) - if TYPE_CHECKING: from .abc import Snowflake from .emoji import AppEmoji, GuildEmoji @@ -163,7 +162,7 @@ def to_dict(self) -> PollAnswerPayload: "poll_media": self.media.to_dict(), } if self.id is not None: - dict_["answer_id"] = (self.id,) + dict_["answer_id"] = self.id return dict_ @classmethod