diff options
| author | khazhyk <[email protected]> | 2019-04-07 22:15:59 -0700 |
|---|---|---|
| committer | khazhyk <[email protected]> | 2019-04-07 22:18:30 -0700 |
| commit | 7078b665a3fff15ceb106c0bc9a67a98fb8552a9 (patch) | |
| tree | c5a4c455862f0569ae27853974ec219649603e52 | |
| parent | Client.event raises TypeError instead of ClientException. (diff) | |
| download | discord.py-7078b665a3fff15ceb106c0bc9a67a98fb8552a9.tar.xz discord.py-7078b665a3fff15ceb106c0bc9a67a98fb8552a9.zip | |
allow passing 0 for logs_from parameters
| -rw-r--r-- | discord/http.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/http.py b/discord/http.py index 2f68906f..24b81f9f 100644 --- a/discord/http.py +++ b/discord/http.py @@ -413,11 +413,11 @@ class HTTPClient: 'limit': limit } - if before: + if before is not None: params['before'] = before - if after: + if after is not None: params['after'] = after - if around: + if around is not None: params['around'] = around return self.request(Route('GET', '/channels/{channel_id}/messages', channel_id=channel_id), params=params) |