diff options
| author | Rapptz <[email protected]> | 2021-04-04 23:54:08 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-04 23:54:08 -0400 |
| commit | ff7094ce9602bad0b4408761841fa02bdb908987 (patch) | |
| tree | d0d37067183f6827398181e598133146f870fa26 /discord/template.py | |
| parent | Remove some lingering userbot classes in the documentation (diff) | |
| download | discord.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.py | 5 |
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. """ |