aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-12 23:00:33 -0400
committerRapptz <[email protected]>2016-06-12 23:00:33 -0400
commitb496ea7972458ff1e24eab5c8fb2cd0b2cdc3c96 (patch)
tree4c8105abd8ae306422dc15477dedc48907fbe8d1
parentFix bug with uploading file-like objects. (diff)
downloaddiscord.py-b496ea7972458ff1e24eab5c8fb2cd0b2cdc3c96.tar.xz
discord.py-b496ea7972458ff1e24eab5c8fb2cd0b2cdc3c96.zip
Fix bug with logs_from URL params not being correct.
The bug happened because I forgot to pass in the id attribute.
-rw-r--r--discord/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index 4c1e36d1..a0de20f9 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1123,6 +1123,9 @@ class Client:
if message.author == client.user:
counter += 1
"""
+ before = getattr(before, 'id', None)
+ after = getattr(after, 'id', None)
+
return self.http.logs_from(channel.id, limit, before=before, after=after)
if PY35: