diff options
| author | Rapptz <[email protected]> | 2021-05-23 22:23:40 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 07:29:17 -0400 |
| commit | 1152f67efc9142072e82fe76d307729839dadca9 (patch) | |
| tree | 58f4fccd672d33030658ce1a10f8fb9b08d22cc3 /discord | |
| parent | Add message purging functions to Thread (diff) | |
| download | discord.py-1152f67efc9142072e82fe76d307729839dadca9.tar.xz discord.py-1152f67efc9142072e82fe76d307729839dadca9.zip | |
Allow pins events to work with threads
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/state.py | 2 |
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 |