allow passing 0 for logs_from parameters

This commit is contained in:
khazhyk 2019-04-07 22:15:59 -07:00
parent 72b6152e96
commit 7078b665a3

View File

@ -413,11 +413,11 @@ class HTTPClient:
'limit': limit 'limit': limit
} }
if before: if before is not None:
params['before'] = before params['before'] = before
if after: if after is not None:
params['after'] = after params['after'] = after
if around: if around is not None:
params['around'] = around params['around'] = around
return self.request(Route('GET', '/channels/{channel_id}/messages', channel_id=channel_id), params=params) return self.request(Route('GET', '/channels/{channel_id}/messages', channel_id=channel_id), params=params)