diff options
| author | Rapptz <[email protected]> | 2020-01-21 21:34:58 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-21 21:34:58 -0500 |
| commit | 17f343b03e72e6c239f5c90cc4836dfefe9c24de (patch) | |
| tree | f0259c331f90ce4158e41b18469f05d4a608b802 | |
| parent | Add missing coroutine header for sleep_until (diff) | |
| download | discord.py-17f343b03e72e6c239f5c90cc4836dfefe9c24de.tar.xz discord.py-17f343b03e72e6c239f5c90cc4836dfefe9c24de.zip | |
Minor documentation fixes
| -rw-r--r-- | discord/client.py | 2 | ||||
| -rw-r--r-- | discord/utils.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py index 60db623c..581341b3 100644 --- a/discord/client.py +++ b/discord/client.py @@ -169,7 +169,7 @@ class Client: - :func:`on_member_join` - :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. This makes it difficult or impossible to do many things, for example: diff --git a/discord/utils.py b/discord/utils.py index dd816e69..46f35bdb 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -346,14 +346,14 @@ async def sleep_until(when, result=None): If the time supplied is in the past this function will yield instantly. + .. versionadded:: 1.3 + Parameters ----------- when: :class:`datetime.datetime` The timestamp in which to sleep until. result: Any If provided is returned to the caller when the coroutine completes. - - .. versionadded:: 1.3 """ if when.tzinfo is None: when = when.replace(tzinfo=datetime.timezone.utc) |