Implemented X-RateLimit-Precision
Created by: Neuheit
Summary
Implements support for specifying and handling more precise rate limit headers.
Details
This can be specified in the DiscordConfiguration
, and allows ratelimits to be rounded to the largest millisecond rather than second. This will also allow for slightly faster response times. More details on the headers can be found here.
Changes proposed
- Added the option as a property in the
DiscordConfiguration
. - The
RestClient
now handles parsing a double or a long reset time, depending on the configuration.