Add VoiceChannel and Thread to isinstance checks

This commit is contained in:
z03h authored and GitHub committed 2022-05-16 15:32:13 -04:00
1 parent 9450a8e972
commit cdf787186e
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1485,7 +1485,7 @@ class ConnectionState:
self.dispatch('raw_typing', raw)
def _get_reaction_user(self, channel: MessageableChannel, user_id: int) -> Optional[Union[User, Member]]:
if isinstance(channel, TextChannel):
if isinstance(channel, (TextChannel, Thread, VoiceChannel)):
return channel.guild.get_member(user_id)
return self.get_user(user_id)