aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-07-29 01:00:30 +0100
committerGitHub <[email protected]>2021-07-28 20:00:30 -0400
commit906c13d4f09d78285194bfea7c569b3c67772cfb (patch)
tree93f553378e28b64536c08d5ac554cba6cdde8b45 /discord
parentAdd system_content for thread message types, fix other system_content issues (diff)
downloaddiscord.py-906c13d4f09d78285194bfea7c569b3c67772cfb.tar.xz
discord.py-906c13d4f09d78285194bfea7c569b3c67772cfb.zip
Set Thread.member/message_count
Diffstat (limited to 'discord')
-rw-r--r--discord/threads.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index 682e56dd..04b09610 100644
--- a/discord/threads.py
+++ b/discord/threads.py
@@ -166,6 +166,8 @@ class Thread(Messageable, Hashable):
self._type = try_enum(ChannelType, data['type'])
self.last_message_id = _get_as_snowflake(data, 'last_message_id')
self.slowmode_delay = data.get('rate_limit_per_user', 0)
+ self.message_count = data['message_count']
+ self.member_count = data['member_count']
self._unroll_metadata(data['thread_metadata'])
try: