aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-20 20:09:18 -0400
committerRapptz <[email protected]>2021-08-20 20:09:18 -0400
commitfbc4a51c355c029af61363038d0a8a9ac0bd8ace (patch)
treeb84f910cac8f5edd1b4e170e339fbc6825bdf501
parent[commands] De-indent after hook call (diff)
downloaddiscord.py-fbc4a51c355c029af61363038d0a8a9ac0bd8ace.tar.xz
discord.py-fbc4a51c355c029af61363038d0a8a9ac0bd8ace.zip
Fix on_typing not dispatching for threads
-rw-r--r--discord/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index 35fe9712..b6f407d8 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')