mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-24 18:13:00 +00:00 
			
		
		
		
	Dispatch thread_join when a thread is updated but not in cache
This commit is contained in:
		| @@ -734,6 +734,10 @@ class ConnectionState: | |||||||
|             old = copy.copy(thread) |             old = copy.copy(thread) | ||||||
|             thread._update(data) |             thread._update(data) | ||||||
|             self.dispatch('thread_update', old, thread) |             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): |     def parse_thread_delete(self, data): | ||||||
|         guild_id = int(data['guild_id']) |         guild_id = int(data['guild_id']) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user