From 06bca8eec8b82f567633a1c1cc979a16d2027a50 Mon Sep 17 00:00:00 2001 From: VincentRPS Date: Thu, 4 Jan 2024 18:50:31 +0800 Subject: [PATCH] chore(docs-client): make docs clearer --- discord/client.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/discord/client.py b/discord/client.py index 8c85ea8441..beb5ada96c 100644 --- a/discord/client.py +++ b/discord/client.py @@ -198,14 +198,20 @@ class Client: To enable these events, this must be set to ``True``. Defaults to ``False``. .. versionadded:: 2.0 - bucket_storage_cls: :class:`type`[:class:`.rate_limiting.BucketStorageProtocol`] + bucket_storage_cls: type[:class:`.BucketStorageProtocol`] The class to use for storing rate limit buckets given by Discord. .. versionadded:: 2.5 concurrency: :class:`int` - Number of requests per `per_concurrency` can occur. - This determines your global rate limit prediction, so make sure - it is set properly. Defaults to `50`. + Number of requests that can occur every `per` seconds. + This determines your global rate limit prediction. + + Make sure `concurrency` is properly set to maximize the + number of requests you can do every `per` seconds. For the + majority of bots, this will be the default of `50`, but if Discord + increases your `concurrency` make sure to change this value. + + Defaults to `50`. .. versionadded:: 2.5 per: :class:`int`