Class ShardedGatewayClientConfiguration
public class ShardedGatewayClientConfiguration
- Inheritance
-
ShardedGatewayClientConfiguration
- Inherited Members
Constructors
ShardedGatewayClientConfiguration()
public ShardedGatewayClientConfiguration()
Properties
CacheFactory
The cache for the GatewayClient. Defaults to GatewayClientCache.
public Func<Shard, IGatewayClientCache?>? CacheFactory { get; init; }
Property Value
CompressionFactory
The compression provider for the GatewayClient. Defaults to ZstandardGatewayCompression if available, otherwise ZLibGatewayCompression.
public Func<Shard, IGatewayCompression?>? CompressionFactory { get; init; }
Property Value
ConnectionPropertiesFactory
The properties for the connection of the GatewayClient. Defaults to null.
public Func<Shard, ConnectionPropertiesProperties?>? ConnectionPropertiesFactory { get; init; }
Property Value
DefaultPayloadPropertiesFactory
The default payload properties for WebSocket payloads. Defaults to null.
public Func<Shard, WebSocketPayloadProperties?>? DefaultPayloadPropertiesFactory { get; init; }
Property Value
Hostname
The hostname to use for the GatewayClient. Defaults to GatewayHostname.
public string? Hostname { get; init; }
Property Value
IntentsFactory
The intents to use for the GatewayClient. Defaults to AllNonPrivileged.
public Func<Shard, GatewayIntents?>? IntentsFactory { get; init; }
Property Value
LargeThresholdFactory
The large threshold for the GatewayClient. Value between 50 and 250, total number of guild users where the gateway will stop sending offline guild users in the guild user list. Defaults to 50.
public Func<Shard, int?>? LargeThresholdFactory { get; init; }
Property Value
LatencyTimerFactory
The latency timer for tracking latency of the WebSocket connection. Defaults to LatencyTimer.
public Func<Shard, ILatencyTimer?>? LatencyTimerFactory { get; init; }
Property Value
PresenceFactory
The presence properties for the GatewayClient. Defaults to null.
public Func<Shard, PresenceProperties?>? PresenceFactory { get; init; }
Property Value
RateLimiterProviderFactory
The provider for WebSocket rate limiters. Defaults to GatewayRateLimiterProvider.
public Func<Shard, IRateLimiterProvider?>? RateLimiterProviderFactory { get; init; }
Property Value
ReconnectStrategyFactory
The strategy for reconnecting the WebSocket. Defaults to ReconnectStrategy.
public Func<Shard, IReconnectStrategy?>? ReconnectStrategyFactory { get; init; }
Property Value
RestClientConfiguration
The configuration for the RestClient at Rest and for each shard at Rest. Defaults to null.
public RestClientConfiguration? RestClientConfiguration { get; init; }
Property Value
ShardCount
The number of shards to use. If null, the number of shards will be determined by Discord.
public int? ShardCount { get; init; }
Property Value
- int?
VersionFactory
The version of the Discord Gateway to use. Defaults to V10.
public Func<Shard, ApiVersion?>? VersionFactory { get; init; }
Property Value
- Func<Shard, ApiVersion?>
WebSocketConnectionProviderFactory
The provider for creating WebSocket connections. Defaults to WebSocketConnectionProvider.
public Func<Shard, IWebSocketConnectionProvider?>? WebSocketConnectionProviderFactory { get; init; }