mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Update flags and applied tags on thread update
This commit is contained in:
parent
9ed5fbecea
commit
e8f6b29a2d
@ -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'])
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user