Table of Contents

Property SendingTimeout

Namespace
DSharpPlus.Net.Gateway
Assembly
DSharpPlus.dll

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.

public TimeSpan SendingTimeout { get; set; }

Property Value

TimeSpan

Remarks

This is intended to detect transient connection failures where we need to reconnect, but will also come into effect during Discord outages and if your internet connection is slow or prone to spikes in latency.