From fbc4a51c355c029af61363038d0a8a9ac0bd8ace Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 20 Aug 2021 20:09:18 -0400 Subject: [PATCH] Fix on_typing not dispatching for threads --- discord/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/state.py b/discord/state.py index 35fe9712a..b6f407d8d 100644 --- a/discord/state.py +++ b/discord/state.py @@ -1259,7 +1259,7 @@ class ConnectionState: user_id = utils._get_as_snowflake(data, 'user_id') if isinstance(channel, DMChannel): member = channel.recipient - elif isinstance(channel, TextChannel) and guild is not None: + elif isinstance(channel, (Thread, TextChannel)) and guild is not None: member = guild.get_member(user_id) if member is None: member_data = data.get('member')