Skip to main content

Struct RateLimitInfo

Represents a REST-Based ratelimit info.

Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public struct RateLimitInfo : IRateLimitInfo

Properties​

IsGlobal​

Gets whether or not this ratelimit info is global.

View Source​
Declaration
public readonly bool IsGlobal { get; }

Limit​

Gets the number of requests that can be made.

View Source​
Declaration
public readonly int? Limit { get; }

Remaining​

Gets the number of remaining requests that can be made.

View Source​
Declaration
public readonly int? Remaining { get; }

RetryAfter​

Gets the total time (in seconds) of when the current rate limit bucket will reset. Can have decimals to match previous millisecond ratelimit precision.

View Source​
Declaration
public readonly int? RetryAfter { get; }

Reset​

Gets the System.DateTimeOffset at which the rate limit resets.

View Source​
Declaration
public readonly DateTimeOffset? Reset { get; }

ResetAfter​

Gets the absolute time when this ratelimit resets.

View Source​
Declaration
public readonly TimeSpan? ResetAfter { get; }

Bucket​

Gets a unique string denoting the rate limit being encountered (non-inclusive of major parameters in the route path).

View Source​
Declaration
public readonly string Bucket { get; }

Lag​

Gets the amount of lag for the request. This is used to denote the precise time of when the ratelimit expires.

View Source​
Declaration
public readonly TimeSpan? Lag { get; }

Endpoint​

Gets the endpoint that this ratelimit info came from.

View Source​
Declaration
public readonly string Endpoint { get; }

Implements​