Browse Source

Set Thread.member/message_count

pull/7297/head
Nadir Chowdhury 4 years ago
committed by GitHub
parent
commit
906c13d4f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/threads.py

2
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:

Loading…
Cancel
Save