diff options
Diffstat (limited to 'discord/threads.py')
| -rw-r--r-- | discord/threads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/threads.py b/discord/threads.py index 85a37018..24eda651 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -139,8 +139,8 @@ class Thread(Messageable, Hashable): 'archive_timestamp', ) - def __init__(self, *, guild: Guild, data: ThreadPayload): - self._state: ConnectionState = guild._state + def __init__(self, *, guild: Guild, state: ConnectionState, data: ThreadPayload): + self._state: ConnectionState = state self.guild = guild self._members: Dict[int, ThreadMember] = {} self._from_data(data) |