aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-05-29 02:59:18 -0400
committerRapptz <[email protected]>2020-05-29 02:59:31 -0400
commitcbdf660ddcee8b3d25d69b3504c2975900b6da91 (patch)
treed9c94afabe26f9442b2f66cf600e5bbb9322524e
parentConsistent usage of RST inline code within Guild.features references (diff)
downloaddiscord.py-cbdf660ddcee8b3d25d69b3504c2975900b6da91.tar.xz
discord.py-cbdf660ddcee8b3d25d69b3504c2975900b6da91.zip
Document that sleep_until considers naive datetimes as UTC.
-rw-r--r--discord/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 3124a737..8342d59e 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -351,7 +351,8 @@ async def sleep_until(when, result=None):
Parameters
-----------
when: :class:`datetime.datetime`
- The timestamp in which to sleep until.
+ The timestamp in which to sleep until. If the datetime is naive then
+ it is assumed to be in UTC.
result: Any
If provided is returned to the caller when the coroutine completes.
"""