Concord - C Discord API library
A Discord API wrapper library written in C
|
The Discord bucket for handling per-group ratelimits. More...
#include <discord-internal.h>
Data Fields | |
char | hash [64] |
long | limit |
long | remaining |
u64unix_ms | reset_tstamp |
struct discord_request * | busy_req |
struct { | |
} | queues |
QUEUE | entry |
The Discord bucket for handling per-group ratelimits.
char discord_bucket::hash[64] |
the hash associated with the bucket's ratelimiting group
long discord_bucket::limit |
maximum connections this bucket can handle before ratelimit
long discord_bucket::remaining |
connections this bucket can do before pending for cooldown
u64unix_ms discord_bucket::reset_tstamp |
timestamp of when cooldown timer resets
struct discord_request* discord_bucket::busy_req |
pointer to this bucket's currently busy request
struct { ... } discord_bucket::queues |
request queues
QUEUE discord_bucket::entry |
entry for discord_ratelimiter pending buckets queue