From f83442096bac59d4a8bf7400036f13c44333a39d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 27 Nov 2015 16:01:39 -0500 Subject: [PATCH] Client.edit_message no longer checks for private channel. --- discord/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/discord/client.py b/discord/client.py index c5d44a6ce..e182347dd 100644 --- a/discord/client.py +++ b/discord/client.py @@ -793,12 +793,10 @@ class Client(object): url = '{}/{}/messages/{}'.format(endpoints.CHANNELS, channel.id, message.id) payload = { - 'content': content + 'content': content, + 'mentions': self._resolve_mentions(content, mentions) } - if not channel.is_private: - payload['mentions'] = self._resolve_mentions(content, mentions) - response = requests.patch(url, headers=self.headers, json=payload) log.debug(request_logging_format.format(response=response)) utils._verify_successful_response(response)