Browse Source

content is optional for channels_messages_modify

feature/storage
Andrei 8 years ago
parent
commit
1a9b973a0c
  1. 9
      disco/api/client.py

9
disco/api/client.py

@ -109,10 +109,11 @@ class APIClient(LoggingClass):
return Message.create(self.client, r.json())
def channels_messages_modify(self, channel, message, content, embed=None):
payload = {
'content': content,
}
def channels_messages_modify(self, channel, message, content=None, embed=None):
payload = {}
if content:
payload['content'] = content
if embed:
payload['embed'] = embed.to_dict()

Loading…
Cancel
Save