View Source Nostrum.Api.Ratelimiter (Nostrum v0.7.0)
Ratelimit implementation specific to Discord's API. Only to be used when starting in a rest-only manner.
Link to this section Summary
Types
Return values of start functions.
Functions
Returns a specification to start this module under a supervisor.
Empties all buckets, voiding any saved ratelimit values.
Retrieves a proper ratelimit endpoint from a given route and url.
Callback implementation for GenServer.init/1
.
Starts the ratelimiter.
Link to this section Types
Return values of start functions.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec empty_buckets() :: true
Empties all buckets, voiding any saved ratelimit values.
Retrieves a proper ratelimit endpoint from a given route and url.
Callback implementation for GenServer.init/1
.
@spec start_link([]) :: on_start()
Starts the ratelimiter.