aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-04 09:41:35 -0400
committerRapptz <[email protected]>2021-06-08 07:26:22 -0400
commit429c5933d9d42bc9184809956299499aab426e72 (patch)
treee2f6c05e5209962f05f558976edfec256c7dbd6f /discord/guild.py
parentReplace Ellipsis with utils.MISSING (diff)
downloaddiscord.py-429c5933d9d42bc9184809956299499aab426e72.tar.xz
discord.py-429c5933d9d42bc9184809956299499aab426e72.zip
Add minor parsing for THREAD_LIST_SYNC and THREAD_MEMBER_UPDATE
There's no dispatch for these yet
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 25e7d402..4e7e38f6 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -213,6 +213,11 @@ class Guild(Hashable):
def _add_member(self, member):
self._members[member.id] = member
+ def _store_thread(self, payload) -> Thread:
+ thread = Thread(guild=self, data=payload)
+ self._threads[thread.id] = thread
+ return thread
+
def _remove_member(self, member):
self._members.pop(member.id, None)