Fix bug with logs_from URL params not being correct.
The bug happened because I forgot to pass in the id attribute.
This commit is contained in:
parent
f3b257b342
commit
b496ea7972
@ -1123,6 +1123,9 @@ class Client:
|
|||||||
if message.author == client.user:
|
if message.author == client.user:
|
||||||
counter += 1
|
counter += 1
|
||||||
"""
|
"""
|
||||||
|
before = getattr(before, 'id', None)
|
||||||
|
after = getattr(after, 'id', None)
|
||||||
|
|
||||||
return self.http.logs_from(channel.id, limit, before=before, after=after)
|
return self.http.logs_from(channel.id, limit, before=before, after=after)
|
||||||
|
|
||||||
if PY35:
|
if PY35:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user