diff options
| author | Rapptz <[email protected]> | 2016-06-15 04:46:19 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-15 04:46:19 -0400 |
| commit | 7c760d32713db5128f95ae9699a32458a0cf25f4 (patch) | |
| tree | 2d923d69c7643997c30bfa1838740c40f57483fd /discord/http.py | |
| parent | Make sure the socket is closed when we call VoiceClient.disconnect (diff) | |
| download | discord.py-7c760d32713db5128f95ae9699a32458a0cf25f4.tar.xz discord.py-7c760d32713db5128f95ae9699a32458a0cf25f4.zip | |
Add Client.get_message
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 9cd46bad..584b2f07 100644 --- a/discord/http.py +++ b/discord/http.py @@ -262,6 +262,9 @@ class HTTPClient: } return self.patch(url, json=payload, bucket='messages:' + str(guild_id)) + def get_message(self, channel_id, message_id): + url = '{0.CHANNELS}/{1}/messages/{2}'.format(self, channel_id, message_id) + return self.get(url, bucket=_func_()) def logs_from(self, channel_id, limit, before=None, after=None): url = '{0.CHANNELS}/{1}/messages'.format(self, channel_id) |