Add ThreadMember.thread

This commit is contained in:
Rapptz 2021-05-09 22:22:12 -04:00
parent 92ee2cd598
commit 9adf94e6b1

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