Browse Source

Client.edit_message no longer checks for private channel.

pull/42/merge
Rapptz 9 years ago
parent
commit
f83442096b
  1. 6
      discord/client.py

6
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)

Loading…
Cancel
Save