Skip to content

Commit

Permalink
Merge pull request #1268 from plun1331/patch-20
Browse files Browse the repository at this point in the history
Fix PartialMessage.edit
  • Loading branch information
Middledot authored Apr 16, 2022
2 parents 9b3618a + 8602fb4 commit b6765d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ async def edit(self, **fields: Any) -> Optional[Message]:

content = fields.pop("content", MISSING)
if content is not MISSING:
fields["content"] = str(content)
fields["content"] = str(content) if content is not None else None

embed = fields.pop("embed", MISSING)
embeds = fields.pop("embeds", MISSING)
Expand Down

0 comments on commit b6765d0

Please sign in to comment.