mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
allow passing 0 for logs_from parameters
This commit is contained in:
parent
72b6152e96
commit
7078b665a3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user