Add Guild.chunk and deprecated Client.request_offline_members

This commit is contained in:
Rapptz
2020-09-10 05:56:48 -04:00
parent 27558ec71a
commit 141511471e
4 changed files with 57 additions and 32 deletions

View File

@@ -333,6 +333,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|
@@ -348,7 +349,7 @@ class AutoShardedClient(Client):
.. warning::
This method is deprecated.
This method is deprecated. Use :meth:`Guild.chunk` instead.
Parameters
-----------