DiscordShardInformation

public struct DiscordShardInformation

Struct that represents shard information. Used when a client is doing manual sharding.

  • The range of shards in this client.

    Declaration

    Swift

    public let shardRange: CountableRange<Int>
  • The total number of shards this bot will have.

    Declaration

    Swift

    public let totalShards: Int
  • Creates a new DiscordShardInformation telling the client the range of shards that it should spawn.

    Declaration

    Swift

    public init(shardRange: CountableRange<Int>, totalShards: Int) throws