diff --git a/discord/threads.py b/discord/threads.py index b50252d78..c22740831 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -192,6 +192,8 @@ class Thread(Messageable, Hashable): def _update(self, data): old = copy.copy(self) self.slowmode_delay = data.get('rate_limit_per_user', 0) + self._flags: int = data.get('flags', 0) + self._applied_tags: array.array[int] = array.array('Q', map(int, data.get('applied_tags', []))) if (meta := data.get('thread_metadata')) is not None: self._unroll_metadata(meta) diff --git a/discord/types/threads.py b/discord/types/threads.py index de5636c69..7feeec64f 100644 --- a/discord/types/threads.py +++ b/discord/types/threads.py @@ -68,6 +68,7 @@ class Thread(TypedDict): last_pin_timestamp: NotRequired[Optional[Snowflake]] newly_created: NotRequired[bool] flags: NotRequired[int] + applied_tags: NotRequired[List[Snowflake]] class ThreadPaginationPayload(TypedDict):