Skip to content

Commit

Permalink
docs: more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Jan 6, 2024
1 parent d6af4c7 commit 9489a92
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions discord/rate_limiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ def set_metadata(
reset_after: int | None = None,
) -> None:
"""Set the metadata for this Bucket.
If both `remaining` and `reset_after` are set to `None`
`metadata_unknown` is set to true, a garbage state is initialized,
and all pending requests are released.
If both `remaining` and `reset_after` are set to ``None`` and
:attr:`metadata_unknown` is set to ``True``, a garbage state will
be initialized and all pending requests will be released.
Parameters
----------
Expand Down Expand Up @@ -357,7 +357,7 @@ async def get(self, id: str) -> Bucket | None:
Returns
-------
:class:`.Bucket` or `None`
Optional[:class:`.Bucket`]
"""

async def get_or_create(self, id: str) -> Bucket:
Expand All @@ -383,7 +383,7 @@ async def temp_bucket(self, id: str) -> DynamicBucket | None:
Returns
-------
:class:`.DynamicBucket` or `None`
Optional[:class:`.DynamicBucket`]
"""

async def push_temp_bucket(self, id: str, bucket: DynamicBucket) -> None:
Expand Down Expand Up @@ -455,7 +455,7 @@ async def get(self, id: str) -> Bucket | None:
Returns
-------
:class:`.Bucket` or `None`
Optional[:class:`.Bucket`]
"""

return self._buckets.get(id)
Expand Down Expand Up @@ -491,7 +491,7 @@ async def temp_bucket(self, id: str) -> DynamicBucket | None:
Returns
-------
:class:`.DynamicBucket` or `None`
Optional[:class:`.DynamicBucket`]
"""

return self._temp_buckets.get(id)
Expand Down

0 comments on commit 9489a92

Please sign in to comment.