diff --git a/CHANGELOG.md b/CHANGELOG.md index b6bea3b715..524adfbe19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ _No changes yet_ `ext.bridge.Bot`. ([#1815](https://github.com/Pycord-Development/pycord/pull/1815)) - Fixed an `AttributeError` in select relating to the select type. ([#1814](https://github.com/Pycord-Development/pycord/pull/1814)) +- Fix `Thread.applied_tags` always returning an empty list. + ([#1817](https://github.com/Pycord-Development/pycord/pull/1817)) ## [2.3.1] - 2022-11-27 diff --git a/discord/threads.py b/discord/threads.py index 96eee779ec..6eb1bfc0a9 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -198,7 +198,9 @@ def _from_data(self, data: ThreadPayload): self.member_count = data.get("member_count", None) self.flags: ChannelFlags = ChannelFlags._from_value(data.get("flags", 0)) self.total_message_sent = data.get("total_message_sent", None) - self._applied_tags: list[int] = data.get("applied_tags", []) + self._applied_tags: list[int] = [ + int(tag_id) for tag_id in data.get("applied_tags", []) + ] # Here, we try to fill in potentially missing data if thread := self.guild.get_thread(self.id) and data.pop("_invoke_flag", False):