From b496ea7972458ff1e24eab5c8fb2cd0b2cdc3c96 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 12 Jun 2016 23:00:33 -0400 Subject: [PATCH] Fix bug with logs_from URL params not being correct. The bug happened because I forgot to pass in the id attribute. --- discord/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/client.py b/discord/client.py index 4c1e36d19..a0de20f9d 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: