shardFor method
Return the shard that handles events for guildId
.
Throws an error if the shard handling events for guildId
is not in this Gateway instance.
Implementation
Shard shardFor(Snowflake guildId) => shards.singleWhere((shard) => shard.id == shardIdFor(guildId));