Minor documentation fixes
This commit is contained in:
parent
706a333287
commit
17f343b03e
@ -169,7 +169,7 @@ class Client:
|
|||||||
- :func:`on_member_join`
|
- :func:`on_member_join`
|
||||||
- :func:`on_member_remove`
|
- :func:`on_member_remove`
|
||||||
|
|
||||||
- Typing events will be disabled (:func:`on_typing_start`).
|
- Typing events will be disabled (:func:`on_typing`).
|
||||||
- If ``fetch_offline_members`` is set to ``False`` then the user cache will not exist.
|
- If ``fetch_offline_members`` is set to ``False`` then the user cache will not exist.
|
||||||
This makes it difficult or impossible to do many things, for example:
|
This makes it difficult or impossible to do many things, for example:
|
||||||
|
|
||||||
|
@ -346,14 +346,14 @@ async def sleep_until(when, result=None):
|
|||||||
|
|
||||||
If the time supplied is in the past this function will yield instantly.
|
If the time supplied is in the past this function will yield instantly.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
when: :class:`datetime.datetime`
|
when: :class:`datetime.datetime`
|
||||||
The timestamp in which to sleep until.
|
The timestamp in which to sleep until.
|
||||||
result: Any
|
result: Any
|
||||||
If provided is returned to the caller when the coroutine completes.
|
If provided is returned to the caller when the coroutine completes.
|
||||||
|
|
||||||
.. versionadded:: 1.3
|
|
||||||
"""
|
"""
|
||||||
if when.tzinfo is None:
|
if when.tzinfo is None:
|
||||||
when = when.replace(tzinfo=datetime.timezone.utc)
|
when = when.replace(tzinfo=datetime.timezone.utc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user