diff options
| author | Alex Nørgaard <[email protected]> | 2021-07-04 02:35:31 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-03 21:35:31 -0400 |
| commit | d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f (patch) | |
| tree | 1f3e91c728e87df04dcb32fcda5927af719004ed /discord/iterators.py | |
| parent | Fix ui.Button constructor default style to match the decorator (diff) | |
| download | discord.py-d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f.tar.xz discord.py-d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f.zip | |
Fix Client.fetch_channel not returning Thread
Diffstat (limited to 'discord/iterators.py')
| -rw-r--r-- | discord/iterators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/iterators.py b/discord/iterators.py index 2f272b70..f725d527 100644 --- a/discord/iterators.py +++ b/discord/iterators.py @@ -750,4 +750,4 @@ class ArchivedThreadIterator(_AsyncIterator['Thread']): def create_thread(self, data: ThreadPayload) -> Thread: from .threads import Thread - return Thread(guild=self.guild, data=data) + return Thread(guild=self.guild, state=self.guild._state, data=data) |