Add ThreadMember.thread

This commit is contained in:
Rapptz committed 2021-06-08 07:29:17 -04:00
1 parent 92ee2cd598
commit 9adf94e6b1
1 file changed
+5
+5
View File
@@ -448,3 +448,8 @@ class ThreadMember(Hashable):
self.joined_at = parse_time(data['join_timestamp'])
self.flags = data['flags']
@property
def thread(self) -> Thread:
""":class:`Thread`: The thread this member belongs to."""
return self.parent