diff options
| author | Rapptz <[email protected]> | 2020-09-10 05:56:48 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:19 -0400 |
| commit | cb8cb557f539baf41640cad3037be02ff9b79818 (patch) | |
| tree | 62f6a01f1974f3fd6bade9cfcfbcb7171b4b06fe /discord/shard.py | |
| parent | Fix Client.request_offline_members no longer working (diff) | |
| download | discord.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.py | 3 |
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 ----------- |