Remove deprecated TextChannel.active_threads for Guild version

This also fills in the ThreadMember data from the endpoint
This commit is contained in:
Rapptz
2021-08-18 01:45:30 -04:00
parent 0df3f51a0b
commit b73f02b9c3
3 changed files with 35 additions and 28 deletions

View File

@ -958,8 +958,8 @@ class HTTPClient:
params['limit'] = limit
return self.request(route, params=params)
def get_active_threads(self, channel_id: Snowflake) -> Response[threads.ThreadPaginationPayload]:
route = Route('GET', '/channels/{channel_id}/threads/active', channel_id=channel_id)
def get_active_threads(self, guild_id: Snowflake) -> Response[threads.ThreadPaginationPayload]:
route = Route('GET', '/guilds/{guild_id}/threads/active', guild_id=guild_id)
return self.request(route)
def get_thread_members(self, channel_id: Snowflake) -> Response[List[threads.ThreadMember]]: