diff options
| author | Rapptz <[email protected]> | 2021-06-28 18:56:28 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-28 18:56:28 -0400 |
| commit | e96df33ce0bf6ff0f4e738d897141cfd006c6ebf (patch) | |
| tree | afd474988df880959f7b2233c2aaabd5eb7c34aa | |
| parent | Fix property CSS to be more inline with everything else (diff) | |
| download | discord.py-e96df33ce0bf6ff0f4e738d897141cfd006c6ebf.tar.xz discord.py-e96df33ce0bf6ff0f4e738d897141cfd006c6ebf.zip | |
Dispatch thread_join when a thread is updated but not in cache
| -rw-r--r-- | discord/state.py | 4 |
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']) |