mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Revert "Allow empty strings to be in Embed.to_dict"
This reverts commit a72fc7416c8f17ee270a0f13ae160a60b9127630. Discord no longer allows this and the original rationale for allowing this was weak to begin with.
This commit is contained in:
parent
d609c78a9e
commit
d3249445f3
@ -742,16 +742,16 @@ class Embed:
|
||||
result['timestamp'] = timestamp.replace(tzinfo=datetime.timezone.utc).isoformat()
|
||||
|
||||
# add in the non raw attribute ones
|
||||
if self.type is not None:
|
||||
if self.type:
|
||||
result['type'] = self.type
|
||||
|
||||
if self.description is not None:
|
||||
if self.description:
|
||||
result['description'] = self.description
|
||||
|
||||
if self.url is not None:
|
||||
if self.url:
|
||||
result['url'] = self.url
|
||||
|
||||
if self.title is not None:
|
||||
if self.title:
|
||||
result['title'] = self.title
|
||||
|
||||
return result # type: ignore # This payload is equivalent to the EmbedData type
|
||||
|
Loading…
x
Reference in New Issue
Block a user