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
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'])