mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Allow pins events to work with threads
This commit is contained in:
1 parent
5ae7940ec8
commit
1152f67efc
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user