From 1a9b973a0cf1060354765eadf4229c2b8fb1bfb6 Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 18 Apr 2017 11:26:02 -0700 Subject: [PATCH] content is optional for channels_messages_modify --- disco/api/client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/disco/api/client.py b/disco/api/client.py index 9f826f5..e1adee7 100644 --- a/disco/api/client.py +++ b/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()