Class GatewayClientOptions
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
Controls the behaviour of the default IGatewayClient.
public sealed class GatewayClientOptions
- Inheritance
-
objectGatewayClientOptions
Properties
- AutoReconnect
Specifies whether the gateway should attempt to reconnect automatically, if possible. It will always attempt to resume a session, regardless of this setting. Defaults to true.
- EnableStreamingDeserialization
Toggles the use of streams for deserializing inbound gateway events. Enabling this will increase the total allocation volume of the gateway, but decrease the maximum size of allocations and may reduce object longevity.
- GetReconnectionDelay
Specifies a function to get the reconnection delay on a given consecutive attempt to reconnect.
- Intents
Specifies the gateway intents for this client. The client will only receive events they specified the relevant intents for. Defaults to AllUnprivileged.
- LargeThreshold
Specifies the member count at which guilds are considered "large" and the information sent about members is reduced. Defaults to 250.
- MaxReconnects
Specifies the maximum amount of reconnects to attempt consecutively. The counter resets if a connection is successfully established. Defaults to uint.MaxValue.