Fix NameError in Embed.to_dict
This commit is contained in:
parent
03616b91db
commit
4bd4c23694
@ -512,7 +512,7 @@ class Embed:
|
|||||||
if timestamp.tzinfo:
|
if timestamp.tzinfo:
|
||||||
result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat()
|
result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat()
|
||||||
else:
|
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
|
# add in the non raw attribute ones
|
||||||
if self.type:
|
if self.type:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user