Table of Contents

Enum RetryMode

Namespace
Discord
Assembly
Discord.Net.Core.dll

Specifies how a request should act in the case of an error.

[Flags]
public enum RetryMode

Fields

AlwaysFail = 0

If a request fails, an exception is thrown immediately.

AlwaysRetry = RetryTimeouts | RetryRatelimit | Retry502

Continuously retry a request until it times out, its cancel token is triggered, or the server responds with a non-502 error.

Retry502 = 8

Retry if a request failed due to an HTTP error 502.

RetryRatelimit = 4

Retry if a request failed due to a rate-limit.

RetryTimeouts = 1

Retry if a request timed out.