aboutsummaryrefslogtreecommitdiff
path: root/discord/template.py
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 /discord/template.py
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 'discord/template.py')
-rw-r--r--discord/template.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/template.py b/discord/template.py
index 62f22fbc..fd412bb7 100644
--- a/discord/template.py
+++ b/discord/template.py
@@ -90,9 +90,10 @@ class Template:
creator: :class:`User`
The creator of the template.
created_at: :class:`datetime.datetime`
- When the template was created.
+ An aware datetime in UTC representing when the template was created.
updated_at: :class:`datetime.datetime`
- When the template was last updated (referred to as "last synced" in the client).
+ An aware datetime in UTC representing when the template was last updated.
+ This is referred to as "last synced" in the official Discord client.
source_guild: :class:`Guild`
The source guild.
"""