Browse Source

Dispatch thread_join when a thread is updated but not in cache

pull/7138/head
Rapptz 4 years ago
parent
commit
e96df33ce0
  1. 4
      discord/state.py

4
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'])

Loading…
Cancel
Save