From 4ccd9c15910e85c178030ed7aa17986e9121b4fb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 10 Sep 2020 05:17:25 -0400 Subject: [PATCH] Remove caching from AutoShardedClient.shards --- discord/shard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/shard.py b/discord/shard.py index 1f0ec730e..f63206786 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() }