aboutsummaryrefslogtreecommitdiff
path: root/discord/threads.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-09 22:22:12 -0400
committerRapptz <[email protected]>2021-06-08 07:29:17 -0400
commit9adf94e6b162758bb6d3db3a213ede16856ec19b (patch)
tree25b967e5338af0dae00d99e415701a59ef24883a /discord/threads.py
parentAdd support for thread parameter in Webhook.send (diff)
downloaddiscord.py-9adf94e6b162758bb6d3db3a213ede16856ec19b.tar.xz
discord.py-9adf94e6b162758bb6d3db3a213ede16856ec19b.zip
Add ThreadMember.thread
Diffstat (limited to 'discord/threads.py')
-rw-r--r--discord/threads.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index fbdf7a23..1a8a6af1 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