From 17f343b03e72e6c239f5c90cc4836dfefe9c24de Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 21 Jan 2020 21:34:58 -0500 Subject: [PATCH] Minor documentation fixes --- discord/client.py | 2 +- discord/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/client.py b/discord/client.py index 60db623ca..581341b3d 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 dd816e691..46f35bdb2 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)