MCPcopy
hub / github.com/Rapptz/discord.py / shards

Method shards

discord/shard.py:449–451  ·  view source on GitHub ↗

Mapping[int, :class:`ShardInfo`]: Returns a mapping of shard IDs to their respective info object.

(self)

Source from the content-addressed store, hash-verified

447
448 @property
449 def shards(self) -> Dict[int, ShardInfo]:
450 """Mapping[int, :class:`ShardInfo`]: Returns a mapping of shard IDs to their respective info object."""
451 return {shard_id: ShardInfo(parent, self.shard_count) for shard_id, parent in self.__shards.items()}
452
453 async def fetch_session_start_limits(self) -> SessionStartLimits:
454 """|coro|

Callers

nothing calls this directly

Calls 2

ShardInfoClass · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected