Add Guild.chunk and deprecated Client.request_offline_members

This commit is contained in:
Rapptz
2020-09-10 05:56:48 -04:00
parent 055fe76241
commit cb8cb557f5
4 changed files with 57 additions and 32 deletions

View File

@ -334,6 +334,7 @@ class AutoShardedClient(Client):
"""Mapping[int, :class:`ShardInfo`]: Returns a mapping of shard IDs to their respective info object."""
return { shard_id: ShardInfo(parent, self.shard_count) for shard_id, parent in self.__shards.items() }
@utils.deprecated('Guild.chunk')
async def request_offline_members(self, *guilds):
r"""|coro|
@ -349,7 +350,7 @@ class AutoShardedClient(Client):
.. warning::
This method is deprecated.
This method is deprecated. Use :meth:`Guild.chunk` instead.
Parameters
-----------