aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-15 14:56:52 -0500
committerRapptz <[email protected]>2016-01-15 14:56:52 -0500
commitb64b89f484906609ab8a0060bc49a82143087263 (patch)
tree261e3a3a5e16bee4fdfc1c9a79c0880c9c437238
parentFix IndexError in Client.move_member. (diff)
downloaddiscord.py-b64b89f484906609ab8a0060bc49a82143087263.tar.xz
discord.py-b64b89f484906609ab8a0060bc49a82143087263.zip
Use Queue instead of LifoQueue in LogsFromIterator.
That way you get the messages in newest to oldest rather than oldest to newest.
-rw-r--r--discord/iterators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/iterators.py b/discord/iterators.py
index b0cb0c77..6a1d8952 100644
--- a/discord/iterators.py
+++ b/discord/iterators.py
@@ -39,7 +39,7 @@ class LogsFromIterator:
self.limit = limit
self.before = before
self.after = after
- self.messages = asyncio.LifoQueue()
+ self.messages = asyncio.Queue()
@asyncio.coroutine
def fill_messages(self):