diff options
| author | Rapptz <[email protected]> | 2020-09-10 05:17:25 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-24 02:17:55 -0400 |
| commit | 9d10f9e09135817930b39b92923dca399b11ee07 (patch) | |
| tree | 0c7d19edf4c4f2f9a128457404670f0b00f3b31c | |
| parent | [tasks] Lazily fetch event loop if one isn't provided (diff) | |
| download | discord.py-9d10f9e09135817930b39b92923dca399b11ee07.tar.xz discord.py-9d10f9e09135817930b39b92923dca399b11ee07.zip | |
Remove caching from AutoShardedClient.shards
| -rw-r--r-- | discord/shard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py index 1f0ec730..f6320678 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -328,7 +328,7 @@ class AutoShardedClient(Client): else: return ShardInfo(parent, self.shard_count) - @utils.cached_property + @property def shards(self): """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() } |