Allow pins events to work with threads

This commit is contained in:
Rapptz
2021-06-08 07:29:17 -04:00
parent 5ae7940ec8
commit 1152f67efc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1249,7 +1249,7 @@ class ConnectionState:
return pm
for guild in self.guilds:
channel = guild.get_channel(id)
channel = guild.get_channel(id) or guild.get_thread(id)
if channel is not None:
return channel