Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 1 addition & 2 deletions discord/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"Poll",
)


if TYPE_CHECKING:
from .abc import Snowflake
from .emoji import AppEmoji, GuildEmoji
Expand Down Expand Up @@ -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
Expand Down
Loading