mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-01 07:40:07 +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
|
pass
|
||||||
|
|
||||||
self.slowmode_delay = data.get('rate_limit_per_user', 0)
|
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:
|
try:
|
||||||
self._unroll_metadata(data['thread_metadata'])
|
self._unroll_metadata(data['thread_metadata'])
|
||||||
|
@ -67,6 +67,7 @@ class Thread(TypedDict):
|
|||||||
last_pin_timestamp: NotRequired[Optional[Snowflake]]
|
last_pin_timestamp: NotRequired[Optional[Snowflake]]
|
||||||
newly_created: NotRequired[bool]
|
newly_created: NotRequired[bool]
|
||||||
flags: NotRequired[int]
|
flags: NotRequired[int]
|
||||||
|
applied_tags: NotRequired[List[Snowflake]]
|
||||||
|
|
||||||
|
|
||||||
class ThreadPaginationPayload(TypedDict):
|
class ThreadPaginationPayload(TypedDict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user