Dispatch thread_join when a thread is updated but not in cache
This commit is contained in:
parent
e3a66bcccc
commit
e96df33ce0
@ -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…
x
Reference in New Issue
Block a user