Explorar el Código

Make folder field in Thread optional

Tulir Asokan hace 3 años
padre
commit
a786a68d2a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      mauigpapi/types/thread.py

+ 2 - 1
mauigpapi/types/thread.py

@@ -62,7 +62,8 @@ class Thread(SerializableAttrs):
     thread_type: str
     viewer_id: int
     thread_title: str
-    folder: int
+    # This seems to be missing in some cases
+    folder: Optional[int] = None
     vc_muted: bool
     is_group: bool
     mentions_muted: bool