aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/state.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index 243f2b7b..e87d1ab1 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -734,6 +734,10 @@ class ConnectionState:
old = copy.copy(thread)
thread._update(data)
self.dispatch('thread_update', old, thread)
+ else:
+ thread = Thread(guild=guild, data=data)
+ guild._add_thread(thread)
+ self.dispatch('thread_join', thread)
def parse_thread_delete(self, data):
guild_id = int(data['guild_id'])