aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
Diffstat (limited to 'discord')
-rw-r--r--discord/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index ec93590b..94a1a62a 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -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