Property ShardId
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
ShardId
Sets the ID of the shard to connect to.
If not sharding, or sharding automatically, this value should be left with the default value of 0.
Must be non-negative and less than ShardCount. The cross-constraint against ShardCount is enforced at connection time — this setter only guards against negative values since the two properties may be assigned in any order during configuration.
[Deprecated("Use Gateway.ShardId instead. This property will be removed in a future version.")]
public int ShardId { set; }