Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
Allow removing content during message edit (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
enkoder authored and b1naryth1ef committed Mar 24, 2018
1 parent 49d0486 commit df6c363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disco/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def channels_messages_create(
def channels_messages_modify(self, channel, message, content=None, embed=None, sanitize=False):
payload = {}

if content:
if content is not None:
if sanitize:
content = S(content)
payload['content'] = content
Expand Down

0 comments on commit df6c363

Please sign in to comment.