diff options
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) |