aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-10 05:17:25 -0400
committerRapptz <[email protected]>2020-09-10 05:17:25 -0400
commit4ccd9c15910e85c178030ed7aa17986e9121b4fb (patch)
tree18f39f0b61622c24856aab23e71e753ec1800ee3
parent[tasks] Lazily fetch event loop if one isn't provided (diff)
downloaddiscord.py-4ccd9c15910e85c178030ed7aa17986e9121b4fb.tar.xz
discord.py-4ccd9c15910e85c178030ed7aa17986e9121b4fb.zip
Remove caching from AutoShardedClient.shards
-rw-r--r--discord/shard.py2
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() }