aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-04 23:54:08 -0400
committerRapptz <[email protected]>2021-04-04 23:54:08 -0400
commitff7094ce9602bad0b4408761841fa02bdb908987 (patch)
treed0d37067183f6827398181e598133146f870fa26 /docs
parentRemove some lingering userbot classes in the documentation (diff)
downloaddiscord.py-ff7094ce9602bad0b4408761841fa02bdb908987.tar.xz
discord.py-ff7094ce9602bad0b4408761841fa02bdb908987.zip
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout the library.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 96647c7c..044f402f 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -340,7 +340,7 @@ to handle it, which defaults to print a traceback and ignoring the exception.
:type channel: :class:`abc.Messageable`
:param user: The user that started typing.
:type user: Union[:class:`User`, :class:`Member`]
- :param when: When the typing started as a naive datetime in UTC.
+ :param when: When the typing started as an aware datetime in UTC.
:type when: :class:`datetime.datetime`
.. function:: on_message(message)
@@ -612,7 +612,7 @@ to handle it, which defaults to print a traceback and ignoring the exception.
:param channel: The private channel that had its pins updated.
:type channel: :class:`abc.PrivateChannel`
- :param last_pin: The latest message that was pinned as a naive datetime in UTC. Could be ``None``.
+ :param last_pin: The latest message that was pinned as an aware datetime in UTC. Could be ``None``.
:type last_pin: Optional[:class:`datetime.datetime`]
.. function:: on_guild_channel_delete(channel)
@@ -646,7 +646,7 @@ to handle it, which defaults to print a traceback and ignoring the exception.
:param channel: The guild channel that had its pins updated.
:type channel: :class:`abc.GuildChannel`
- :param last_pin: The latest message that was pinned as a naive datetime in UTC. Could be ``None``.
+ :param last_pin: The latest message that was pinned as an aware datetime in UTC. Could be ``None``.
:type last_pin: Optional[:class:`datetime.datetime`]
.. function:: on_guild_integrations_update(guild)