Table of Contents

Class RestClientOptions

Namespace
DSharpPlus.Net
Assembly
DSharpPlus.dll

Represents configuration options passed to DSharpPlus' Rest client.

public sealed class RestClientOptions
Inheritance
object
RestClientOptions

Properties

InitialRequestTimeout

Specifies the time we should be waiting for a ratelimit bucket hash to initialize.

MaximumConcurrentRestRequests

Specifies the maximum rest requests to attempt concurrently. Defaults to 15.

MaximumRatelimitRetries

Specifies the maximum amount of retries to attempt when ratelimited. Retries will still try to respect the ratelimit.

RatelimitRetryDelayFallback

Specifies the delay to use when there was no delay information passed to the rest client. Defaults to 2.5 seconds.

Timeout

Sets the timeout for HTTP operations. Set this to System.Threading.Timeout.InfiniteTimeSpan to never time out. Defaults to 100 seconds.