Class GatewayClientConfiguration
public class GatewayClientConfiguration
- Inheritance
-
GatewayClientConfiguration
- Inherited Members
Constructors
GatewayClientConfiguration()
public GatewayClientConfiguration()
Properties
Cache
The cache for the GatewayClient. Defaults to GatewayClientCache.
public IGatewayClientCache? Cache { get; init; }
Property Value
Compression
The compression provider for the GatewayClient. Defaults to ZstandardGatewayCompression if available, otherwise ZLibGatewayCompression.
public IGatewayCompression? Compression { get; init; }
Property Value
ConnectionProperties
The properties for the connection of the GatewayClient. Defaults to null.
public ConnectionPropertiesProperties? ConnectionProperties { get; init; }
Property Value
DefaultPayloadProperties
The default payload properties for WebSocket payloads. Defaults to null.
public WebSocketPayloadProperties? DefaultPayloadProperties { get; init; }
Property Value
Hostname
The hostname to use for the GatewayClient. Defaults to GatewayHostname.
public string? Hostname { get; init; }
Property Value
Intents
The intents to use for the GatewayClient. Defaults to AllNonPrivileged.
public GatewayIntents? Intents { get; init; }
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; init; }
Property Value
- int?
LatencyTimer
The latency timer for tracking latency of the WebSocket connection. Defaults to LatencyTimer.
public ILatencyTimer? LatencyTimer { get; init; }
Property Value
Presence
The presence properties for the GatewayClient. Defaults to null.
public PresenceProperties? Presence { get; init; }
Property Value
RateLimiterProvider
The provider for WebSocket rate limiters. Defaults to GatewayRateLimiterProvider.
public IRateLimiterProvider? RateLimiterProvider { get; init; }
Property Value
ReconnectStrategy
The strategy for reconnecting the WebSocket. Defaults to ReconnectStrategy.
public IReconnectStrategy? ReconnectStrategy { get; init; }
Property Value
RestClientConfiguration
The configuration for the RestClient at Rest. Defaults to null.
public RestClientConfiguration? RestClientConfiguration { get; init; }
Property Value
Shard
The shard for the GatewayClient. Defaults to null.
public Shard? Shard { get; init; }
Property Value
Version
The version of the Discord Gateway to use. Defaults to V10.
public ApiVersion? Version { get; init; }
Property Value
WebSocketConnectionProvider
The provider for creating WebSocket connections. Defaults to WebSocketConnectionProvider.
public IWebSocketConnectionProvider? WebSocketConnectionProvider { get; init; }