Class ShardedGatewayClientOptions
public class ShardedGatewayClientOptions : IDiscordOptions
- Inheritance
-
ShardedGatewayClientOptions
- Implements
- Inherited Members
Constructors
ShardedGatewayClientOptions()
public ShardedGatewayClientOptions()
Properties
AutoStartStop
public bool? AutoStartStop { get; set; }
Property Value
- bool?
CacheProvider
The cache provider for the GatewayClient. Defaults to Empty.
public IGatewayClientCacheProvider? CacheProvider { get; set; }
Property Value
CacheProviderFactory
The cache provider for the GatewayClient. Defaults to Empty.
public Func<Shard, IGatewayClientCacheProvider?>? CacheProviderFactory { get; set; }
Property Value
Compression
The compression provider for the GatewayClient. Defaults to ZstandardGatewayCompression if available, otherwise ZLibGatewayCompression.
public IGatewayCompression? Compression { get; set; }
Property Value
CompressionFactory
The compression provider for the GatewayClient. Defaults to ZstandardGatewayCompression if available, otherwise ZLibGatewayCompression.
public Func<Shard, IGatewayCompression?>? CompressionFactory { get; set; }
Property Value
ConnectionProperties
The properties for the connection of the GatewayClient. Defaults to null.
public ConnectionPropertiesProperties? ConnectionProperties { get; set; }
Property Value
ConnectionPropertiesFactory
The properties for the connection of the GatewayClient. Defaults to null.
public Func<Shard, ConnectionPropertiesProperties?>? ConnectionPropertiesFactory { get; set; }
Property Value
DefaultPayloadProperties
The default payload properties for WebSocket payloads. Defaults to null.
public WebSocketPayloadProperties? DefaultPayloadProperties { get; set; }
Property Value
DefaultPayloadPropertiesFactory
The default payload properties for WebSocket payloads. Defaults to null.
public Func<Shard, WebSocketPayloadProperties?>? DefaultPayloadPropertiesFactory { get; set; }
Property Value
Hostname
The hostname to use for the GatewayClient. Defaults to GatewayHostname.
public string? Hostname { get; set; }
Property Value
Intents
The intents to use for the GatewayClient. Defaults to AllNonPrivileged.
public GatewayIntents? Intents { get; set; }
Property Value
IntentsFactory
The intents to use for the GatewayClient. Defaults to AllNonPrivileged.
public Func<Shard, GatewayIntents?>? IntentsFactory { get; set; }
Property Value
LargeThreshold
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 int? LargeThreshold { get; set; }
Property Value
- int?
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; set; }
Property Value
LatencyTimer
The latency timer for tracking latency of the WebSocket connection. Defaults to LatencyTimer.
public ILatencyTimer? LatencyTimer { get; set; }
Property Value
LatencyTimerFactory
The latency timer for tracking latency of the WebSocket connection. Defaults to LatencyTimer.
public Func<Shard, ILatencyTimer?>? LatencyTimerFactory { get; set; }
Property Value
MaxConcurrency
The maximum number of shards that can connect concurrently. If null, it will be determined by Discord.
public int? MaxConcurrency { get; set; }
Property Value
- int?
Presence
The presence properties for the GatewayClient. Defaults to null.
public PresenceProperties? Presence { get; set; }
Property Value
PresenceFactory
The presence properties for the GatewayClient. Defaults to null.
public Func<Shard, PresenceProperties?>? PresenceFactory { get; set; }
Property Value
PublicKey
The public key used to validate HTTP interactions.
public string? PublicKey { get; set; }
Property Value
RateLimiterProvider
The provider for WebSocket rate limiters. Defaults to GatewayRateLimiterProvider.
public IRateLimiterProvider? RateLimiterProvider { get; set; }
Property Value
RateLimiterProviderFactory
The provider for WebSocket rate limiters. Defaults to GatewayRateLimiterProvider.
public Func<Shard, IRateLimiterProvider?>? RateLimiterProviderFactory { get; set; }
Property Value
ReconnectStrategy
The strategy for reconnecting the WebSocket. Defaults to ReconnectStrategy.
public IReconnectStrategy? ReconnectStrategy { get; set; }
Property Value
ReconnectStrategyFactory
The strategy for reconnecting the WebSocket. Defaults to ReconnectStrategy.
public Func<Shard, IReconnectStrategy?>? ReconnectStrategyFactory { get; set; }
Property Value
RestClientConfiguration
The configuration for the RestClient at Rest and for each shard at Rest. Defaults to null.
public RestClientConfiguration? RestClientConfiguration { get; set; }
Property Value
ShardRange
The range of shards to use. Note that shard IDs are zero-based and the end value is exclusive. For example, to use shards 2, 3, and 4, set this to 2..5. If null, all shards from 0 to TotalShardCount - 1 will be used.
public Range? ShardRange { get; set; }
Property Value
Remarks
TotalShardCount is required to be set when this property is set.
Token
The token used to authenticate with Discord.
[Required]
public string? Token { get; set; }
Property Value
TotalShardCount
The total number of shards. If null, the number of shards will be determined by Discord.
public int? TotalShardCount { get; set; }
Property Value
- int?
Version
The version of the Discord Gateway to use. Defaults to V10.
public ApiVersion? Version { get; set; }
Property Value
VersionFactory
The version of the Discord Gateway to use. Defaults to V10.
public Func<Shard, ApiVersion?>? VersionFactory { get; set; }
Property Value
- Func<Shard, ApiVersion?>
WebSocketConnectionProvider
The provider for creating WebSocket connections. Defaults to WebSocketConnectionProvider.
public IWebSocketConnectionProvider? WebSocketConnectionProvider { get; set; }
Property Value
WebSocketConnectionProviderFactory
The provider for creating WebSocket connections. Defaults to WebSocketConnectionProvider.
public Func<Shard, IWebSocketConnectionProvider?>? WebSocketConnectionProviderFactory { get; set; }