From cb8cb557f539baf41640cad3037be02ff9b79818 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 10 Sep 2020 05:56:48 -0400 Subject: Add Guild.chunk and deprecated Client.request_offline_members --- discord/shard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/shard.py') 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 ----------- -- cgit v1.2.3