Skip to main content

SleepyDiscord::RateLimiter

More...

Detailed Description​

template <class Client >
struct SleepyDiscord::RateLimiter;

Public Functions Documentation​

function limitBucket​

inline void limitBucket(
const Route::Bucket & bucket,
const std::string & xBucket,
time_t timestamp
)

function getLiftTime​

inline const time_t getLiftTime(
Route::Bucket & bucket,
const time_t & currentTime
)

Public Attributes Documentation​

variable isGlobalRateLimited​

std::atomic< bool > isGlobalRateLimited = { false };

variable nextRetry​

std::atomic< time_t > nextRetry = { 0 };

Updated on 13 April 2022 at 18:39:59 UTC