Table of Contents

Class GatewayClientOptions

Namespace
DSharpPlus.Net.Gateway
Assembly
DSharpPlus.dll

Controls the behaviour of the default IGatewayClient.

public sealed class GatewayClientOptions
Inheritance
GatewayClientOptions

Properties

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 MaxValue.

SendingTimeout

Specifies the timeout to use when sending a payload to the gateway and for websocket-level keepalive messages (this is distinct from heartbeating). If this is exceeded, DSharpPlus will attempt to reconnect and resume. Defaults to 5 seconds.