using System; namespace Discord { /// Specifies how a request should act in the case of an error. [Flags] public enum RetryMode { /// If a request fails, an exception is thrown immediately. AlwaysFail = 0x0, /// Retry if a request timed out. RetryTimeouts = 0x1, // /// Retry if a request failed due to a network error. //RetryErrors = 0x2, /// Retry if a request failed due to a rate-limit. RetryRatelimit = 0x4, /// Retry if a request failed due to an HTTP error 502. Retry502 = 0x8, /// Continuously retry a request until it times out, its cancel token is triggered, or the server responds with a non-502 error. AlwaysRetry = RetryTimeouts | /*RetryErrors |*/ RetryRatelimit | Retry502, } }