From 158ac6bb50a23892afb17c737f56f297d662fe07 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sun, 16 Oct 2016 17:41:11 -0700 Subject: Add around parameter to LogsFromIterator. --- discord/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'discord/http.py') diff --git a/discord/http.py b/discord/http.py index ada71f7c..26824fcb 100644 --- a/discord/http.py +++ b/discord/http.py @@ -265,7 +265,7 @@ class HTTPClient: 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): + def logs_from(self, channel_id, limit, before=None, after=None, around=None): url = '{0.CHANNELS}/{1}/messages'.format(self, channel_id) params = { 'limit': limit @@ -275,6 +275,8 @@ class HTTPClient: params['before'] = before if after: params['after'] = after + if around: + params['around'] = around return self.get(url, params=params, bucket=_func_()) -- cgit v1.2.3