diff options
| author | khazhyk <[email protected]> | 2016-10-16 17:41:11 -0700 |
|---|---|---|
| committer | khazhyk <[email protected]> | 2016-10-16 18:10:49 -0700 |
| commit | 158ac6bb50a23892afb17c737f56f297d662fe07 (patch) | |
| tree | 7627d558d036cc3312c739a3dbeee311b8c31f72 /discord/http.py | |
| parent | Refactor LogsFromIterator (diff) | |
| download | discord.py-158ac6bb50a23892afb17c737f56f297d662fe07.tar.xz discord.py-158ac6bb50a23892afb17c737f56f297d662fe07.zip | |
Add around parameter to LogsFromIterator.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 4 |
1 files changed, 3 insertions, 1 deletions
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_()) |