aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/state.py b/discord/state.py
index 5daa583e..f4a6a664 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -715,7 +715,7 @@ class ConnectionState:
log.debug('THREAD_CREATE referencing an unknown guild ID: %s. Discarding', guild_id)
return
- thread = Thread(guild=guild, data=data)
+ thread = Thread(guild=guild, state=guild._state, data=data)
has_thread = guild.get_thread(thread.id)
guild._add_thread(thread)
if not has_thread:
@@ -735,7 +735,7 @@ class ConnectionState:
thread._update(data)
self.dispatch('thread_update', old, thread)
else:
- thread = Thread(guild=guild, data=data)
+ thread = Thread(guild=guild, state=guild._state, data=data)
guild._add_thread(thread)
self.dispatch('thread_join', thread)