aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-10 05:56:48 -0400
committerRapptz <[email protected]>2020-09-23 03:21:19 -0400
commitcb8cb557f539baf41640cad3037be02ff9b79818 (patch)
tree62f6a01f1974f3fd6bade9cfcfbcb7171b4b06fe /discord/shard.py
parentFix Client.request_offline_members no longer working (diff)
downloaddiscord.py-cb8cb557f539baf41640cad3037be02ff9b79818.tar.xz
discord.py-cb8cb557f539baf41640cad3037be02ff9b79818.zip
Add Guild.chunk and deprecated Client.request_offline_members
Diffstat (limited to 'discord/shard.py')
-rw-r--r--discord/shard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py
index 1b635c1c..00a7a117 100644
--- a/discord/shard.py
+++ b/discord/shard.py
@@ -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
-----------