Update flags and applied tags on thread update

This commit is contained in:
Lilly Rose Berner 2022-09-04 16:42:19 +02:00 committed by GitHub
parent 9ed5fbecea
commit e8f6b29a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,8 @@ class Thread(Messageable, Hashable):
pass
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', [])))
try:
self._unroll_metadata(data['thread_metadata'])

View File

@ -67,6 +67,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):