Fix on_typing not dispatching for threads
This commit is contained in:
parent
9246bbc8e3
commit
fbc4a51c35
@ -1259,7 +1259,7 @@ class ConnectionState:
|
|||||||
user_id = utils._get_as_snowflake(data, 'user_id')
|
user_id = utils._get_as_snowflake(data, 'user_id')
|
||||||
if isinstance(channel, DMChannel):
|
if isinstance(channel, DMChannel):
|
||||||
member = channel.recipient
|
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)
|
member = guild.get_member(user_id)
|
||||||
if member is None:
|
if member is None:
|
||||||
member_data = data.get('member')
|
member_data = data.get('member')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user