Browse Source

Allow removing content during message edit (#88)

pull/86/merge
Kodie Goodwin 7 years ago
committed by Andrei Zbikowski
parent
commit
df6c363250
  1. 2
      disco/api/client.py

2
disco/api/client.py

@ -191,7 +191,7 @@ class APIClient(LoggingClass):
def channels_messages_modify(self, channel, message, content=None, embed=None, sanitize=False): def channels_messages_modify(self, channel, message, content=None, embed=None, sanitize=False):
payload = {} payload = {}
if content: if content is not None:
if sanitize: if sanitize:
content = S(content) content = S(content)
payload['content'] = content payload['content'] = content

Loading…
Cancel
Save