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()) return Message.create(self.client, r.json())
def channels_messages_modify(self, channel, message, content, embed=None): def channels_messages_modify(self, channel, message, content=None, embed=None):
payload = { payload = {}
'content': content,
} if content:
payload['content'] = content
if embed: if embed:
payload['embed'] = embed.to_dict() payload['embed'] = embed.to_dict()

Loading…
Cancel
Save