Skip to content

Commit

Permalink
fix: update thread applied tags (#2146)
Browse files Browse the repository at this point in the history
* fix: update thread applied tags

* chore: add changelog entry

---------

Co-authored-by: Lala Sabathil <lala@pycord.dev>
  • Loading branch information
Dorukyum and Lulalaby authored Jun 24, 2023
1 parent b076bd3 commit c5345d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2091](https://github.com/Pycord-Development/pycord/pull/2091))
- Fixed `AttributeError` when accessing a `Select`'s values when it hasn't been
interacted with. ([#2104](https://github.com/Pycord-Development/pycord/pull/2104))
- Fixed `Thread.applied_tags` not being updated.
([#2146](https://github.com/Pycord-Development/pycord/pull/2146))

## [2.4.1] - 2023-03-20

Expand Down
3 changes: 3 additions & 0 deletions discord/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def _update(self, data):
except KeyError:
pass

self._applied_tags: list[int] = [
int(tag_id) for tag_id in data.get("applied_tags", [])
]
self.flags: ChannelFlags = ChannelFlags._from_value(data.get("flags", 0))
self.slowmode_delay = data.get("rate_limit_per_user", 0)

Expand Down

0 comments on commit c5345d8

Please sign in to comment.