From 9adf94e6b162758bb6d3db3a213ede16856ec19b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 9 May 2021 22:22:12 -0400 Subject: [PATCH] Add ThreadMember.thread --- discord/threads.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/threads.py b/discord/threads.py index fbdf7a230..1a8a6af1e 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -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