aboutsummaryrefslogtreecommitdiff
path: root/discord/threads.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-09 22:23:21 -0400
committerRapptz <[email protected]>2021-06-08 07:29:17 -0400
commitbd369c76ea5424f65e37d84bfb45df1c76a4e739 (patch)
tree435f8a36703721a4ef74ef0a4682dd5dd8655a3c /discord/threads.py
parentAdd ThreadMember.thread (diff)
downloaddiscord.py-bd369c76ea5424f65e37d84bfb45df1c76a4e739.tar.xz
discord.py-bd369c76ea5424f65e37d84bfb45df1c76a4e739.zip
Parse remaining thread events.
Diffstat (limited to 'discord/threads.py')
-rw-r--r--discord/threads.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index 1a8a6af1..cf6d92aa 100644
--- a/discord/threads.py
+++ b/discord/threads.py
@@ -383,6 +383,8 @@ class Thread(Messageable, Hashable):
def _add_member(self, member: ThreadMember) -> None:
self._members[member.id] = member
+ def _pop_member(self, member_id: int) -> Optional[ThreadMember]:
+ return self._members.pop(member_id, None)
class ThreadMember(Hashable):
"""Represents a Discord thread member.