Table of Contents

Interface IRateLimitInfo

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a generic ratelimit info.

public interface IRateLimitInfo

Properties

Bucket

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

string? Bucket { get; }

Property Value

string

Endpoint

Gets the endpoint that this ratelimit info came from.

string Endpoint { get; }

Property Value

string

IsGlobal

Gets whether this ratelimit info is global.

bool IsGlobal { get; }

Property Value

bool

Lag

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

TimeSpan? Lag { get; }

Property Value

TimeSpan?

Limit

Gets the number of requests that can be made.

int? Limit { get; }

Property Value

int?

Remaining

Gets the number of remaining requests that can be made.

int? Remaining { get; }

Property Value

int?

ResetAfter

Gets the absolute time when this ratelimit resets.

TimeSpan? ResetAfter { get; }

Property Value

TimeSpan?