nextcore icon indicating copy to clipboard operation
nextcore copied to clipboard

Split rate limiter config from main params

Open TAG-Epic opened this issue 2 years ago • 0 comments

This would reduce argument clutter in http wrappers, and make it easier to add additional ones. Also reduces the effort required to add more settings.

Example usage:

rate_limiter_settings = RateLimiterSettings(wait=False, global_priority = 10, bucket_priority= 20)
await http_client.get_guild(123456789, rate_limiter_settings=rate_limiter_settings)

TAG-Epic avatar Dec 26 '22 13:12 TAG-Epic