diff options
| author | Rapptz <[email protected]> | 2019-03-17 11:51:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-17 11:51:54 -0400 |
| commit | 4bd4c23694c096415913b229804fc0297b4dc840 (patch) | |
| tree | 6a188d33736cfb25cf7eb54dfda94583c28c3f50 | |
| parent | Fix embed to_dict timestamp handling for python 3.5 (diff) | |
| download | discord.py-4bd4c23694c096415913b229804fc0297b4dc840.tar.xz discord.py-4bd4c23694c096415913b229804fc0297b4dc840.zip | |
Fix NameError in Embed.to_dict
| -rw-r--r-- | discord/embeds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/embeds.py b/discord/embeds.py index 88123cbc..7b4ecccb 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -512,7 +512,7 @@ class Embed: if timestamp.tzinfo: result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat() else: - result['timestamp'] = timestamp.replace(tzinfo=timezone.utc).isoformat() + result['timestamp'] = timestamp.replace(tzinfo=datetime.timezone.utc).isoformat() # add in the non raw attribute ones if self.type: |