diff options
| author | Rapptz <[email protected]> | 2016-01-15 14:56:52 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-15 14:56:52 -0500 |
| commit | b64b89f484906609ab8a0060bc49a82143087263 (patch) | |
| tree | 261e3a3a5e16bee4fdfc1c9a79c0880c9c437238 | |
| parent | Fix IndexError in Client.move_member. (diff) | |
| download | discord.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.py | 2 |
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): |