Browse Source

Remove caching from AutoShardedClient.shards

pull/5813/head
Rapptz 5 years ago
parent
commit
4ccd9c1591
  1. 2
      discord/shard.py

2
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() }

Loading…
Cancel
Save