Table of Contents

Property MaxRetries

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

MaxRetries

Gets or sets the maximum number of automatic retries for a request that receives a retryable response. Applies to rate-limit responses (429) and transient server errors (500, 502, 503, 504). Server errors use exponential backoff (1s, 2s, 4s, …); rate limits use the server-provided Retry-After.

public int MaxRetries { get; set; }

Property Value

int

Remarks

Must be non-negative. Defaults to 5. Set to 0 to disable retries entirely.