Interface IRateLimitInfo
Represents a generic ratelimit info.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IRateLimitInfo
Properties​
IsGlobal​
Gets whether or not this ratelimit info is global.
View Source​
Declaration
bool IsGlobal { get; }
Limit​
Gets the number of requests that can be made.
View Source​
Declaration
int? Limit { get; }
Remaining​
Gets the number of remaining requests that can be made.
View Source​
Declaration
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
int? RetryAfter { get; }
Reset​
Gets the System.DateTimeOffset
at which the rate limit resets.
View Source​
Declaration
DateTimeOffset? Reset { get; }
ResetAfter​
Gets the absolute time when this ratelimit resets.
View Source​
Declaration
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
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
TimeSpan? Lag { get; }
Endpoint​
Gets the endpoint that this ratelimit info came from.
View Source​
Declaration
string Endpoint { get; }